OAuth:...Encoded(3pm)
π OAuth::Lite2::Formatter::FormURLEncoded β the manual page, but make it cute β¨
okay bestie, so this is a page from the User Contributed Perl Documentation (the 3pm girlies know π«Ά), and it's all about OAuth::Lite2::Formatter::FormURLEncoded. buckle up, it's short but she's iconic π
πΈ NAME πΈ
OAuth::Lite2::Formatter::FormURLEncoded β it's the OAuth 2.0 form-urlencoded formatters store. literally that's the whole job, and she does it well π
β¨ SYNOPSIS β¨
okay so here's the vibe in code form, no cap:
my $formatter = OAuth::Lite2::Formatter::FormURLEncoded->new;
my $obj = $formatter->parse( $string );
$string = $formatter->format( $obj );
make one, parse a string into an object, format an object back into a string. that's the whole cycle bestie π
π¦ DESCRIPTION π¦
DEPRECATED. π¨ yeah. she said it herself. this is the OAuth 2.0 form-urlencoded formatter, and she's marked deprecated β so like, she still works, but the universe has moved on. use with awareness, okay? π
π METHODS π
name π
an accessor for the name of this format. and the name is "form". short, sweet, to the point. periodt.
type π
an accessor for the content-type of this format, which is "application/x-www-form-urlencoded". the way that string is so long⦠she's giving mime-type main character energy.
format( $object ) β¨
my $formatted_string = $formatter->format( $obj );
you hand her an object, she hands you back a formatted string. glow-up transformation fr fr π
parse( $formatted_string ) π₯
my $obj = $formatter->parse( $formatted_string );
the reverse arc π« β you give her the formatted string, she gives you back an object. obsessed.
π SEE ALSO π
go read these next, bestie, they're in the same friend group:
OAuth::Lite2::FormatterOAuth::Lite2::FormattersOAuth::Lite2::Formatter::JSONOAuth::Lite2::Formatter::XML
π AUTHOR π
Lyo Kato, <lyo.kato@gmail.com> β thank you for your service, king π
π COPYRIGHT AND LICENSE π
Copyright (C) 2010 by Lyo Kato
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.
so basically: it's free, it's Perl-licensed, and you can run with Perl 5.8.8 or literally any newer Perl 5 you've got lying around. slay π
and that's the whole page, bestie!! this one came from perl v5.36.0, dated 2023-07-01, and yeah the manual name is OAuth:...Encoded(3pm) (they truncated it for the header, not me π). k bye, go format some forms π
β¨
π¦ where this page comes from
- debian trixie: liboauth-lite2-perl 0.11-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: liboauth-lite2-perl 0.11-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: liboauth-lite2-perl 0.11-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: liboauth-lite2-perl 0.11-3 Β· 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