|
NAMEMojo::Cookie - HTTP cookie base classSYNOPSISpackage Mojo::Cookie::MyCookie; use Mojo::Base 'Mojo::Cookie'; sub parse {...} sub to_string {...} DESCRIPTIONMojo::Cookie is an abstract base class for HTTP cookie containers, based on RFC 6265 <https://tools.ietf.org/html/rfc6265>, like Mojo::Cookie::Request and Mojo::Cookie::Response.ATTRIBUTESMojo::Cookie implements the following attributes.namemy $name = $cookie->name; $cookie = $cookie->name('foo'); Cookie name. valuemy $value = $cookie->value; $cookie = $cookie->value('/test'); Cookie value. METHODSMojo::Cookie inherits all methods from Mojo::Base and implements the following new ones.parsemy $cookies = $cookie->parse($str); Parse cookies. Meant to be overloaded in a subclass. to_stringmy $str = $cookie->to_string; Render cookie. Meant to be overloaded in a subclass. OPERATORSMojo::Cookie overloads the following operators.boolmy $bool = !!$cookie; Always true. stringifymy $str = "$cookie"; Alias for "to_string". SEE ALSOMojolicious, Mojolicious::Guides, <https://mojolicious.org>.
Visit the GSP FreeBSD Man Page Interface. |