GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  MOJO::COOKIE (3)

.ds Aq ’

NAME

Mojo::Cookie - HTTP cookie base class

CONTENTS

SYNOPSIS



  package Mojo::Cookie::MyCookie;
  use Mojo::Base Mojo::Cookie;

  sub parse     {...}
  sub to_string {...}



DESCRIPTION

Mojo::Cookie is an abstract base class for HTTP cookie containers, based on RFC 6265 <http://tools.ietf.org/html/rfc6265>, like Mojo::Cookie::Request and Mojo::Cookie::Response.

ATTRIBUTES

Mojo::Cookie implements the following attributes.

    name



  my $name = $cookie->name;
  $cookie  = $cookie->name(foo);



Cookie name.

    value



  my $value = $cookie->value;
  $cookie   = $cookie->value(/test);



Cookie value.

METHODS

Mojo::Cookie inherits all methods from Mojo::Base and implements the following new ones.

    parse



  my $cookies = $cookie->parse($str);



Parse cookies. Meant to be overloaded in a subclass.

    to_string



  my $str = $cookie->to_string;



Render cookie. Meant to be overloaded in a subclass.

OPERATORS

Mojo::Cookie overloads the following operators.

    bool



  my $bool = !!$cookie;



Always true.

    stringify



  my $str = "$cookie";



Alias for to_string.

SEE ALSO

Mojolicious, Mojolicious::Guides, <http://mojolicious.org>.
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 MOJO::COOKIE (3) 2016-03-15

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.