June 2002
Beginner
759 pages
80h 42m
English
scan
$h->scan($sub)
Invokes the subroutine referenced by $ sub for
each header field in the object. The subroutine is passed the
name of the header and its value as a pair of arguments. For
header fields with more than one value, the subroutine will be
called once for each value.
The HTTP::Headers class allows you to use a number of convenience methods on header objects to set (or read) common field values. If you supply a value for an argument, that value will be set for the field. The previous value for the header is always returned. The following methods are available:
date expires if_modified_since if_unmodified_since last_modified content_type content_encoding content_length content_language title user_agent server from referrer www_authenticate proxy_authenticate authorization proxy_authorization authorization_basic proxy_authorization_basic