AnyEve...Encoder(3pm)
β¨ NAME β¨
AnyEvent::FTP::Server::UnambiguousResponseEncoder β bestie, it's a server response encoder whose whole entire job is to encode responses so they literally cannot be confused with anything else π
It lives in the Perl docs, manual page AnyEve...Encoder(3pm), and no cap it does exactly what it says on the tin.
π VERSION π
version 0.20 π¦
πΈ SYNOPSIS πΈ
okay so here's the vibe:
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');
that's it. that's the whole flex. β¨
π DESCRIPTION π
So here's the tea: objects of this class are used to encode responses which are returned to the client from the server. that's the job. that's the assignment. and she ate. π
π¦ METHODS π¦
β encode β
my $str = $encoder->encode( $res );
my $str = $encoder->encode( $code, $message );
Returns the encoded message, periodt π.
And here's the cute part β you've got options, bestie. You can pass in either a AnyEvent::FTP::Response object, or a code + message pair. either way, she handles it. no cap π«Ά
π AUTHOR π
Author: Graham Ollis <plicease@cpan.org> π
Contributors:
- Ryo Okamoto
- Shlomi Fish
- JosΓ© JoaquΓn Atria
(we love a collaborative moment, fr fr π₯Ή)
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2017-2022 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. slay π
k bye, this page was generated byperl v5.40.1on2026-02-16, and it's filed underAnyEve...Encoder(3pm)β mwah, take care bestie πππΈ
π¦ where this page comes from
- ubuntu stonking: libanyevent-ftp-perl 0.20-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms