table of contents
other versions
- Tumbleweed 0.260.0-1.2
- Leap-15.6
| Protocol::WebSocket::Cookie::Response(3pm) | User Contributed Perl Documentation | Protocol::WebSocket::Cookie::Response(3pm) |
NAME¶
Protocol::WebSocket::Cookie::Response - WebSocket Cookie Response
SYNOPSIS¶
# Constructor
my $cookie = Protocol::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 = Protocol::WebSocket::Cookie::Response->new;
$cookie->parse('foo=bar; Discard; Max-Age=0; Version=1');
DESCRIPTION¶
Construct or parse a WebSocket response cookie.
METHODS¶
"parse"¶
Parse a WebSocket response cookie.
"to_string"¶
Construct a WebSocket response cookie.
| 2025-06-03 | perl v5.42.0 |