line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Protocol::SPDY; |
2
|
|
|
|
|
|
|
# ABSTRACT: Support for the SPDY protocol |
3
|
3
|
|
|
3
|
|
16930
|
use strict; |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
100
|
|
4
|
3
|
|
|
3
|
|
12
|
use warnings; |
|
3
|
|
|
|
|
3
|
|
|
3
|
|
|
|
|
114
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = '1.001'; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
=head1 NAME |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
Protocol::SPDY - abstract support for the SPDY protocol |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
=head1 VERSION |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
version 1.001 |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
=head1 SYNOPSIS |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
use Protocol::SPDY; |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
=cut |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
# Pull in all the required pieces |
23
|
3
|
|
|
3
|
|
1221
|
use Protocol::SPDY::Constants ':all'; |
|
3
|
|
|
|
|
3
|
|
|
3
|
|
|
|
|
563
|
|
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
# Helpers |
26
|
3
|
|
|
3
|
|
1568
|
use curry; |
|
3
|
|
|
|
|
533
|
|
|
3
|
|
|
|
|
75
|
|
27
|
3
|
|
|
3
|
|
1876
|
use Future; |
|
3
|
|
|
|
|
33101
|
|
|
3
|
|
|
|
|
142
|
|
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
# Support for deflate/gzip |
30
|
3
|
|
|
3
|
|
1323
|
use Protocol::SPDY::Compress; |
|
3
|
|
|
|
|
7
|
|
|
3
|
|
|
|
|
103
|
|
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
# Basic frame wrangling |
33
|
3
|
|
|
3
|
|
1245
|
use Protocol::SPDY::Frame; |
|
3
|
|
|
|
|
10
|
|
|
3
|
|
|
|
|
80
|
|
34
|
3
|
|
|
3
|
|
1169
|
use Protocol::SPDY::Frame::Control; |
|
3
|
|
|
|
|
4
|
|
|
3
|
|
|
|
|
66
|
|
35
|
3
|
|
|
3
|
|
1179
|
use Protocol::SPDY::Frame::Data; |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
70
|
|
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
# Specific frame types |
38
|
3
|
|
|
3
|
|
1063
|
use Protocol::SPDY::Frame::Control::SETTINGS; |
|
3
|
|
|
|
|
3
|
|
|
3
|
|
|
|
|
71
|
|
39
|
3
|
|
|
3
|
|
1076
|
use Protocol::SPDY::Frame::Control::SYN_STREAM; |
|
3
|
|
|
|
|
7
|
|
|
3
|
|
|
|
|
97
|
|
40
|
3
|
|
|
3
|
|
1100
|
use Protocol::SPDY::Frame::Control::SYN_REPLY; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
90
|
|
41
|
3
|
|
|
3
|
|
1086
|
use Protocol::SPDY::Frame::Control::RST_STREAM; |
|
3
|
|
|
|
|
4
|
|
|
3
|
|
|
|
|
82
|
|
42
|
3
|
|
|
3
|
|
1099
|
use Protocol::SPDY::Frame::Control::PING; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
78
|
|
43
|
3
|
|
|
3
|
|
1038
|
use Protocol::SPDY::Frame::Control::GOAWAY; |
|
3
|
|
|
|
|
69
|
|
|
3
|
|
|
|
|
82
|
|
44
|
3
|
|
|
3
|
|
1028
|
use Protocol::SPDY::Frame::Control::HEADERS; |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
75
|
|
45
|
3
|
|
|
3
|
|
1070
|
use Protocol::SPDY::Frame::Control::WINDOW_UPDATE; |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
72
|
|
46
|
3
|
|
|
3
|
|
1032
|
use Protocol::SPDY::Frame::Control::CREDENTIAL; |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
91
|
|
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
# Stream management |
49
|
3
|
|
|
3
|
|
1305
|
use Protocol::SPDY::Stream; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
75
|
|
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
# Client/server logic |
52
|
3
|
|
|
3
|
|
1136
|
use Protocol::SPDY::Server; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
86
|
|
53
|
3
|
|
|
3
|
|
1148
|
use Protocol::SPDY::Client; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
70
|
|
54
|
3
|
|
|
3
|
|
1038
|
use Protocol::SPDY::Tracer; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
77
|
|
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
1; |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
__END__ |