X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=lib%2FCatalyst%2FResponse.pm;h=a6fbf0f1a750653f0ad113148fe568413cbae061;hp=18930dac4798d7ed09991a2697df49f72588c62a;hb=ac965e92078c3aee85d0d5db153c728cd26cf182;hpb=b0652c9d17ad76db2e25c027c344816d2cbd8fbb diff --git a/lib/Catalyst/Response.pm b/lib/Catalyst/Response.pm index 18930da..a6fbf0f 100644 --- a/lib/Catalyst/Response.pm +++ b/lib/Catalyst/Response.pm @@ -62,10 +62,33 @@ Shortcut to $res->headers->content_type =item $res->cookies -Returns a reference to a hash containing the cookies to be set. +Returns a reference to a hash containing the cookies to be set. The keys of the +hash are the cookies' names, and their corresponding values are hash references +used to construct L object. $c->response->cookies->{foo} = { value => '123' }; +The values correspond to the L parameters of the same name, except +they are used without a leading dash. + +The proxied parameters are + +=over 4 + +=item value + +=item expires + +=item domain + +=item path + +=item secure + +=item + +=back + =item $res->header Shortcut to $res->headers->header