GX::HTTP::Request::Cookie - HTTP request cookie class
# Load the class use GX::HTTP::Request::Cookie; # Create a new cookie $cookie = GX::HTTP::Request::Cookie->new( name => 'Customer', value => 'Wile E. Coyote', path => '/acme' ) # Parse a "Cookie" header @cookies = GX::HTTP::Request::Cookie->parse( '$Version="1"; Customer="Wile E. Coyote"; $Path="/acme"' );
This module provides the GX::HTTP::Request::Cookie class which extends the GX::HTTP::Cookie class.
new
Returns a new GX::HTTP::Request::Cookie object.
$cookie = GX::HTTP::Request::Cookie->new( %attributes );
domain ( string )
domain
name ( string )
name
path ( string )
path
port ( string )
port
value ( string )
value
version ( string )
version
$cookie ( GX::HTTP::Request::Cookie object )
$cookie
GX::Exception
Also see parse().
parse()
as_string
Returns a string representation of the cookie, suitable for inclusion in a "Cookie" header.
$string = $cookie->as_string;
$string ( string )
$string
See GX::HTTP::Cookie.
parse
Parses the value of a "Cookie" header into a list of GX::HTTP::Request::Cookie objects.
@cookies = GX::HTTP::Request::Cookie->parse( $string );
@cookies ( GX::HTTP::Request::Cookie objects )
@cookies
RFC 2109
RFC 2965
Jörg A. Uzarek <uzarek@runlevelnull.de>
Copyright (c) 2009-2011 Jörg A. Uzarek.
This module is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License Version 3 as published by the Free Software Foundation.
To install GX, copy and paste the appropriate command in to your terminal.
cpanm
cpanm GX
CPAN shell
perl -MCPAN -e shell install GX
For more information on module installation, please visit the detailed CPAN module installation guide.