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