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