Provided by: libdancer2-perl_0.207000+dfsg-1_all
Dancer2::Core::Cookie - A cookie representing class
use Dancer2::Core::Cookie; my $cookie = Dancer2::Core::Cookie->new( name => $cookie_name, value => $cookie_value ); my $value = $cookie->value; print "$cookie"; # objects stringify to their value.
Dancer2::Core::Cookie provides a HTTP cookie object to work with cookies.
my $cookie=Dancer2::Core::Cookie->new(%opts); Create a new Dancer2::Core::Cookie object. You can set any attribute described in the ATTRIBUTES section above. my $header=$cookie->to_header(); Creates a proper HTTP cookie header from the content.
Dancer Core Developers
COPYRIGHT AND LICENSE
This software is copyright (c) 2018 by Alexis Sukrieh. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.