AnyEve...Encoder(3pm)

πŸ“¦ version 0.20, in ubuntu stonking

✨ 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 πŸ₯Ή)


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 by perl v5.40.1 on 2026-02-16, and it's filed under AnyEve...Encoder(3pm) β€” mwah, take care bestie πŸŽ€πŸ’–πŸŒΈ
πŸ“¦ where this page comes from