line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package AnyEvent::FTP::Request; |
2
|
|
|
|
|
|
|
|
3
|
25
|
|
|
25
|
|
1461
|
use strict; |
|
25
|
|
|
|
|
194
|
|
|
25
|
|
|
|
|
776
|
|
4
|
25
|
|
|
25
|
|
129
|
use warnings; |
|
25
|
|
|
|
|
60
|
|
|
25
|
|
|
|
|
667
|
|
5
|
25
|
|
|
25
|
|
457
|
use 5.010; |
|
25
|
|
|
|
|
110
|
|
6
|
25
|
|
|
25
|
|
184
|
use overload '""' => sub { shift->as_string }, bool => sub { 1 }, fallback => 1; |
|
25
|
|
|
0
|
|
75
|
|
|
25
|
|
|
|
|
364
|
|
|
0
|
|
|
|
|
0
|
|
|
0
|
|
|
|
|
0
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
# ABSTRACT: Request class for asynchronous ftp server |
9
|
|
|
|
|
|
|
our $VERSION = '0.18'; # VERSION |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub new |
13
|
|
|
|
|
|
|
{ |
14
|
677
|
|
|
677
|
0
|
2340
|
my($class, $cmd, $args, $raw) = @_; |
15
|
677
|
|
|
|
|
5621
|
bless { command => $cmd, args => $args, raw => $raw }, $class; |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
|
19
|
678
|
|
|
678
|
1
|
6217
|
sub command { shift->{command} } |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
|
22
|
567
|
|
|
567
|
1
|
2561
|
sub args { shift->{args} } |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
|
25
|
0
|
|
|
0
|
1
|
|
sub raw { shift->{raw} } |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
sub as_string |
29
|
|
|
|
|
|
|
{ |
30
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
31
|
0
|
|
|
|
|
|
join ' ', $self->command, $self->args; |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
1; |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
__END__ |