- COPYRIGHT AND LICENSE
AnyEvent::FTP::Response - Response class for asynchronous ftp client
Instances of this class represent a FTP server response.
my $code = $client->code;
Integer code for the message. These can be categorized thus:
Positive preliminary reply
Positive completion reply
Positive intermediate reply
Transient negative reply
Permanent negative reply
5xx messages are errors, where as
3xx are various states of (at least so far) successful operations.
2xx indicates a completely successful operation.
my $message = $res->message;
The human readable message returned from the server. This is always a list reference, even if the server only returned one line.
my $bool = $res->is_success;
True if the response does not represent an error condition (codes
my $bool = $res->is_preliminary;
True if the response is a preliminary positive reply (code
my $str = $res->as_string; my $str = "$res";
Returns a string representation of the response. This may not be exactly what was returned by the server, but will include the code and at least part of the message in a human readable format.
You can also get this string by treating objects of this class as a string (using it in a double quoted string, or by using string operators):
is the same as
Author: Graham Ollis <firstname.lastname@example.org>
José Joaquín Atria
This software is copyright (c) 2017 by Graham Ollis.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.