line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::WebSocket::X::BadRequestProtocol; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
1149
|
use strict; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
60
|
|
4
|
2
|
|
|
2
|
|
11
|
use warnings; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
50
|
|
5
|
|
|
|
|
|
|
|
6
|
2
|
|
|
2
|
|
10
|
use Net::WebSocket::Constants (); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
35
|
|
7
|
|
|
|
|
|
|
|
8
|
2
|
|
|
2
|
|
10
|
use parent qw( Net::WebSocket::X::Base ); |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
10
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub _new { |
11
|
2
|
|
|
2
|
|
464
|
my ($class, $protocol) = @_; |
12
|
|
|
|
|
|
|
|
13
|
2
|
|
|
|
|
7
|
my $str = "Received invalid HTTP request protocol: $protocol"; |
14
|
|
|
|
|
|
|
|
15
|
2
|
|
|
|
|
6
|
$str .= " - must be " . Net::WebSocket::Constants::REQUIRED_REQUEST_PROTOCOL(); |
16
|
|
|
|
|
|
|
|
17
|
2
|
|
|
|
|
12
|
return $class->SUPER::_new( |
18
|
|
|
|
|
|
|
$str, |
19
|
|
|
|
|
|
|
protocol => $protocol, |
20
|
|
|
|
|
|
|
); |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
1; |