line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::WebSocket::X::BadRequestProtocol; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
997
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
46
|
|
4
|
2
|
|
|
2
|
|
8
|
use warnings; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
38
|
|
5
|
|
|
|
|
|
|
|
6
|
2
|
|
|
2
|
|
8
|
use Net::WebSocket::Constants (); |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
42
|
|
7
|
|
|
|
|
|
|
|
8
|
2
|
|
|
2
|
|
7
|
use parent qw( Net::WebSocket::X::Base ); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
8
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub _new { |
11
|
2
|
|
|
2
|
|
432
|
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; |