line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::WebSocket::X::BadRequestProtocol; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
1542
|
use strict; |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
83
|
|
4
|
2
|
|
|
2
|
|
13
|
use warnings; |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
65
|
|
5
|
|
|
|
|
|
|
|
6
|
2
|
|
|
2
|
|
11
|
use Net::WebSocket::Constants (); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
41
|
|
7
|
|
|
|
|
|
|
|
8
|
2
|
|
|
2
|
|
9
|
use parent qw( Net::WebSocket::X::Base ); |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
14
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub _new { |
11
|
2
|
|
|
2
|
|
553
|
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
|
|
|
|
|
14
|
return $class->SUPER::_new( |
18
|
|
|
|
|
|
|
$str, |
19
|
|
|
|
|
|
|
protocol => $protocol, |
20
|
|
|
|
|
|
|
); |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
1; |