Furl::Headers - HTTP Headers object
The constructor takes one argument. It is a hashref. Every key of hashref must be lower-cased.
The format of the argument is like following:
+{ 'content-length' => [30], 'set-cookies' => ['auth_token=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT', '_twitter_sess=JKLJBNBLKSFJBLKSJBLKSJLKJFLSDJFjkDKFUFIOSDUFSDVjOTUzNzUwNTE2%250AZWFiMWRiNDZhMDcwOWEwMWQ5IgpmbGFzaElDOidBY3Rpb25Db250cm9sbGVy%250AOjpGbGFzaDo6Rmxhc2hIYXNoewAGOgpAdXNlZHsA--d9ce07496a22525bc178jlkhafklsdjflajfl411; domain=.twitter.com; path=/'], }
Get the header value in array.
Get the header value in scalar. This is not a first value of header. This is same as:
my $values = join(", ", $headers->header($key))
Set the new value of headers.
Delete key from headers.
Gets pairs of keys and values.
Returns keys of headers in array. The return value do not contains duplicated value.
Return the header fields as a formatted MIME header.
These methods are shortcut for popular headers.
Returns a copy of this "Furl::Headers" object.
HTTP::Headers
To install Furl, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Furl
CPAN shell
perl -MCPAN -e shell install Furl
For more information on module installation, please visit the detailed CPAN module installation guide.