GX::HTTP::Response::Cookies

Module Version: 0.2000_01

NAME

GX::HTTP::Response::Cookies - Container class for GX::HTTP::Response::Cookie objects

SYNOPSIS

# Load the class
use GX::HTTP::Response::Cookies;

# Create a new container object
$cookies = GX::HTTP::Response::Cookies->new;

# Add a cookie
$cookies->add(
GX::HTTP::Response::Cookie->new(
name => 'customer',
value => 'Wile E. Coyote'
)
);

# Same as above
$cookies->create( name => 'customer', value => 'Wile E. Coyote' );

# Retrieve a cookie
$cookie = $cookies->get( 'customer' );

DESCRIPTION

This module provides the GX::HTTP::Response::Cookies class which extends the GX::HTTP::Cookies class.

METHODS

Constructor

new

Returns a new GX::HTTP::Response::Cookies object.

$cookies = GX::HTTP::Response::Cookies->new;
Returns:
Exceptions:

Public Methods

add

See GX::HTTP::Cookies. Only accepts GX::HTTP::Response::Cookie cookie objects.

create

Creates a new GX::HTTP::Response::Cookie cookie object with the specified attributes and adds it to the container.

$cookie = $cookies->create( %attributes );
Arguments:
Returns:
Exceptions:

set

See GX::HTTP::Cookies. Only accepts GX::HTTP::Response::Cookie cookie objects.

AUTHOR

Jörg A. Uzarek <uzarek@runlevelnull.de>

COPYRIGHT AND LICENSE

Copyright © 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.