line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Protocol::SPDY; |
2
|
|
|
|
|
|
|
# ABSTRACT: Support for the SPDY protocol |
3
|
3
|
|
|
3
|
|
16215
|
use strict; |
|
3
|
|
|
|
|
3
|
|
|
3
|
|
|
|
|
66
|
|
4
|
3
|
|
|
3
|
|
8
|
use warnings; |
|
3
|
|
|
|
|
4
|
|
|
3
|
|
|
|
|
106
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = '0.999_007'; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
=head1 NAME |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
Protocol::SPDY - abstract support for the SPDY protocol |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
=head1 VERSION |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
version 0.999_007 |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
=head1 SYNOPSIS |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
use Protocol::SPDY; |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
=cut |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
# Pull in all the required pieces |
23
|
3
|
|
|
3
|
|
1026
|
use Protocol::SPDY::Constants ':all'; |
|
3
|
|
|
|
|
4
|
|
|
3
|
|
|
|
|
424
|
|
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
# Helpers |
26
|
3
|
|
|
3
|
|
1362
|
use curry; |
|
3
|
|
|
|
|
528
|
|
|
3
|
|
|
|
|
72
|
|
27
|
3
|
|
|
3
|
|
1508
|
use Future; |
|
3
|
|
|
|
|
28563
|
|
|
3
|
|
|
|
|
102
|
|
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
# Support for deflate/gzip |
30
|
3
|
|
|
3
|
|
1033
|
use Protocol::SPDY::Compress; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
83
|
|
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
# Basic frame wrangling |
33
|
3
|
|
|
3
|
|
1188
|
use Protocol::SPDY::Frame; |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
75
|
|
34
|
3
|
|
|
3
|
|
1059
|
use Protocol::SPDY::Frame::Control; |
|
3
|
|
|
|
|
4
|
|
|
3
|
|
|
|
|
64
|
|
35
|
3
|
|
|
3
|
|
1020
|
use Protocol::SPDY::Frame::Data; |
|
3
|
|
|
|
|
3
|
|
|
3
|
|
|
|
|
70
|
|
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
# Specific frame types |
38
|
3
|
|
|
3
|
|
1105
|
use Protocol::SPDY::Frame::Control::SETTINGS; |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
92
|
|
39
|
3
|
|
|
3
|
|
1052
|
use Protocol::SPDY::Frame::Control::SYN_STREAM; |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
80
|
|
40
|
3
|
|
|
3
|
|
1094
|
use Protocol::SPDY::Frame::Control::SYN_REPLY; |
|
3
|
|
|
|
|
4
|
|
|
3
|
|
|
|
|
72
|
|
41
|
3
|
|
|
3
|
|
1037
|
use Protocol::SPDY::Frame::Control::RST_STREAM; |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
80
|
|
42
|
3
|
|
|
3
|
|
1075
|
use Protocol::SPDY::Frame::Control::PING; |
|
3
|
|
|
|
|
4
|
|
|
3
|
|
|
|
|
68
|
|
43
|
3
|
|
|
3
|
|
1076
|
use Protocol::SPDY::Frame::Control::GOAWAY; |
|
3
|
|
|
|
|
4
|
|
|
3
|
|
|
|
|
78
|
|
44
|
3
|
|
|
3
|
|
1138
|
use Protocol::SPDY::Frame::Control::HEADERS; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
84
|
|
45
|
3
|
|
|
3
|
|
1393
|
use Protocol::SPDY::Frame::Control::WINDOW_UPDATE; |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
67
|
|
46
|
3
|
|
|
3
|
|
1025
|
use Protocol::SPDY::Frame::Control::CREDENTIAL; |
|
3
|
|
|
|
|
4
|
|
|
3
|
|
|
|
|
66
|
|
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
# Stream management |
49
|
3
|
|
|
3
|
|
1095
|
use Protocol::SPDY::Stream; |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
66
|
|
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
# Client/server logic |
52
|
3
|
|
|
3
|
|
1030
|
use Protocol::SPDY::Server; |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
66
|
|
53
|
3
|
|
|
3
|
|
1018
|
use Protocol::SPDY::Client; |
|
3
|
|
|
|
|
4
|
|
|
3
|
|
|
|
|
68
|
|
54
|
3
|
|
|
3
|
|
902
|
use Protocol::SPDY::Tracer; |
|
3
|
|
|
|
|
7
|
|
|
3
|
|
|
|
|
77
|
|
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
1; |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
__END__ |