AnyEvent::FTP::Server::UnambiguousResponseEncoder - Server response encoder that encodes responses so they cannot be confused
version 0.19
use AnyEvent::FTP::Server::UnambiguousResponseEncoder; my $encoder = AnyEvent::FTP::Server::UnambiguousResponseEncoder->new; # encode a FTP welcome message my $message = $encoder->encode(220, 'welcome to myftpd');
Objects of this class are used to encode responses which are returned to the client from the server.
my $str = $encoder->encode( $res ); my $str = $encoder->encode( $code, $message );
Returns the encoded message. You can pass in either a AnyEvent::FTP::Response object, or a code message pair.
Author: Graham Ollis <plicease@cpan.org>
Contributors:
Ryo Okamoto
Shlomi Fish
José Joaquín Atria
This software is copyright (c) 2017-2021 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.