Protocol::WebSocket::Cookie::Response - WebSocket Cookie Response
# Constructor my $cookie = Parser::WebSocket::Cookie::Response->new( name => 'foo', value => 'bar', discard => 1, max_age => 0 ); $cookie->to_string; # foo=bar; Discard; Max-Age=0; Version=1 # Parser my $cookie = Parser::WebSocket::Cookie::Response->new; $cookie->parse('foo=bar; Discard; Max-Age=0; Version=1');
Construct or parse a WebSocket response cookie.
parse
Parse a WebSocket response cookie.
to_string
Construct a WebSocket response cookie.
To install Protocol::WebSocket, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Protocol::WebSocket
CPAN shell
perl -MCPAN -e shell install Protocol::WebSocket
For more information on module installation, please visit the detailed CPAN module installation guide.