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