| 1 |
|
| MODULE = Protocol::WebSocket::Fast PACKAGE = Protocol::WebSocket::Fast::ConnectResponse |
| 2 |
|
| PROTOTYPES: DISABLE |
| 3 |
|
| |
| 4 |
|
| BOOT { |
| 5 |
0 |
▶ | Stash(__PACKAGE__).inherit("Protocol::HTTP::Response"); |
Branch: 2 branches
| Branch | True | False | Total |
| Stash(__PACKAGE__).inherit("Protocol::HTTP::Response"); |
0 |
0 |
0 |
| Stash(__PACKAGE__).inherit("Protocol::HTTP::Response"); |
0 |
0 |
0 |
|
| 6 |
|
| } |
| 7 |
|
| |
| 8 |
|
| ConnectResponseSP ConnectResponse::new (Hash params = Hash()) { |
| 9 |
0 |
| RETVAL = new ConnectResponse(); |
| 10 |
0 |
▶ | make_response(params, RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| make_response(params, RETVAL); |
0 |
0 |
0 |
|
| 11 |
0 |
▶ | } |
Branch: 3 branches
| Branch | True | False | Total |
| } |
0 |
0 |
0 |
| } |
0 |
0 |
0 |
| } |
0 |
0 |
0 |
|
| 12 |
0 |
▶ | |
Branch: 2 branches
| Branch | True | False | Total |
|
0 |
0 |
0 |
|
0 |
0 |
0 |
|
| 13 |
0 |
▶ | string ConnectResponse::ws_accept_key () |
Branch: 1 branch
| Branch | True | False | Total |
| string ConnectResponse::ws_accept_key () |
0 |
0 |
0 |
|
| 14 |
|
| |
| 15 |
0 |
▶ | string ConnectResponse::ws_version () |
Branch: 1 branch
| Branch | True | False | Total |
| string ConnectResponse::ws_version () |
0 |
0 |
0 |
|
| 16 |
|
| |
| 17 |
|
| Array ConnectResponse::ws_extensions (Array exts_av = Array()) { |
| 18 |
0 |
▶ | if (exts_av) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (exts_av) { |
0 |
0 |
0 |
|
| 19 |
0 |
| HeaderValues exts; |
| 20 |
0 |
▶ | av_to_header_values(exts_av, &exts); |
Branch: 1 branch
| Branch | True | False | Total |
| av_to_header_values(exts_av, &exts); |
0 |
0 |
0 |
|
| 21 |
0 |
▶ | THIS->ws_extensions(exts); |
Branch: 1 branch
| Branch | True | False | Total |
| THIS->ws_extensions(exts); |
0 |
0 |
0 |
|
| 22 |
0 |
| XSRETURN_UNDEF; |
| 23 |
0 |
| } |
| 24 |
|
| |
| 25 |
0 |
▶ | RETVAL = header_values_to_av(THIS->ws_extensions()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVAL = header_values_to_av(THIS->ws_extensions()); |
0 |
0 |
0 |
|
| 26 |
|
| } |
| 27 |
|
| |
| 28 |
|
| string ConnectResponse::ws_protocol (SV* newval = NULL) { |
| 29 |
0 |
▶ | if (newval) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (newval) { |
0 |
0 |
0 |
|
| 30 |
0 |
▶ | THIS->ws_protocol(xs::in<string>(newval)); |
Branch: 2 branches
| Branch | True | False | Total |
| THIS->ws_protocol(xs::in<string>(newval)); |
0 |
0 |
0 |
| THIS->ws_protocol(xs::in<string>(newval)); |
0 |
0 |
0 |
|
| 31 |
0 |
| XSRETURN_UNDEF; |
| 32 |
|
| } |
| 33 |
0 |
▶ | RETVAL = THIS->ws_protocol(); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVAL = THIS->ws_protocol(); |
0 |
0 |
0 |
|
| 34 |
|
| } |
| 35 |
|
| |
| 36 |
0 |
| ErrorCode ConnectResponse::error () |
| 37 |
0 |
| |