HTTP::Headers
HTTPヘッダオブジェクト。
コンストラクタもあるが、単独使用する事はないと思われるのでプロパティアクセサのみ説明。
my $value = $h->header($field);
HTTPヘッダ中の$fieldフィールドの値。
my @fields = $h->header_field_names;
フィールド名リスト。
$res->header($field);
HTTPヘッダ中の$fieldフィールドの値。
よく使われるフィールド
よく使われるフィールドは、下記のメソッドでもアクセスできる。
$h->date
$h->expires
$h->if_modified_since
$h->if_unmodified_since
$h->last_modified
$h->content_type
$h->content_is_html
$h->content_is_xhtml
$h->content_is_xml
$h->content_encoding
$h->content_length
$h->content_language
$h->title ※<TITLE>タグの値をLWPが取得する。HTTPヘッダとは無関係。
$h->user_agent
$h->server
$h->from
$h->referer
$h->www_authenticate
$h->proxy_authenticate
$h->authorization
$h->proxy_authorization
$h->authorization_basic
$h->proxy_authorization_basic