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