BoardStreams/Client/Handshake.pm

filter: Statementstmt 100% 15 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod 0.0% 0 / 1 totaltotal 94.7% 18 / 19 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
header
1.0
CRAP 1.0
« Mojolicious/Plugin/BoardStreams.pm ↑ Summary BoardStreams/Client/Error.pm »
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;
« Mojolicious/Plugin/BoardStreams.pm ↑ Summary BoardStreams/Client/Error.pm »