| 1 | 2 | ▶ | use v5.44; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 2 | 2 | ▶ | use experimental 'class'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | |||
| 4 | # The answer to one WebSocket handshake, as BoardStreams::Client shows it | ||
| 5 | # to the on_handshake callback. See the POD of BoardStreams::Client. | ||
| 6 | 2 | class BoardStreams::Client::Handshake { | |
| 7 | 2 | our $VERSION = "v0.0.60"; | |
| 8 | |||
| 9 | 2 | field $code :param :reader; # the HTTP status of the answer; 101 when the server accepted | |
| 10 | 2 | field $accepted :param :reader; # true if the answer opened a WebSocket connection | |
| 11 | 2 | field $headers :param :reader; # the answer's headers, a Mojo::Headers object | |
| 12 | 2 | field $body :param :reader; # the answer's body: what a refusal says, empty otherwise | |
| 13 | 2 | field $sent :param :reader; # the headers that the client's headers option added to the request | |
| 14 | |||
| 15 | # One header of the answer, whatever the case of its name. | ||
| 16 | 1 | ▶ | method header ($name) { $headers->header($name) } |
|
Subroutine
header: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 17 | } | ||
| 18 | |||
| 19 | 2 | 1; | |