HTTP::...derType(3pm)
π HTTP::Headers::ActionPack::Core::BaseHeaderType π
okay bestie, so the manual page header calls this one HTTP::...derType(3pm) (yes the name is literally chopped mid-word, we love a dramatic entrance), and the actual module is:
HTTP::Headers::ActionPack::Core::BaseHeaderType β A Base header type π
β¨ VERSION β¨
version 0.09 β that's the vibe, that's the era π
πΈ SYNOPSIS πΈ
use HTTP::Headers::ActionPack::Core::BaseHeaderType;
that's it. that's the whole flex. π
π¦ DESCRIPTION π¦
so this is a base class for header values that also carry around a parameter list π«Ά. And like... that's genuinely it. There are no real user serviceable parts in here β ngl it's giving "look but don't touch", it's giving backstage pass with a velvet rope π. You don't instantiate this for funsies; it's the foundation other things build on. periodt.
π METHODS π
new( $subject, @params )β the constructor, obviously. Takes a subject and a list of params β¨subjectβ yeah it's just the subject accessor, she's simple, she's iconic πnew_from_string ( $header_string )β this one's lowkey the star β. Hand it an HTTP header string and it will parse it into an object for you. string goes in, object comes out, no cap π§as_stringβ stringifies the link, and it does so respecting the parameter order π. So the order you gave is the order you get. as it should be.
β οΈ NOTE: this will canonicalize the header β which means it adds a space between each semicolon and quotes and unquotes all headers appropriately. So like, do NOT expect your original string back character-for-character, bestie. it's gonna get a glow-up whether you asked for one or not π β¨
π AUTHOR π
Stevan Little <stevan.little@iinteractive.com> β the originator, the main character π«
π CONTRIBUTORS π
the squad, the group chat, the ones who showed up:
- Andrew Nelson
<anelson@cpan.org> - Dave Rolsky
<autarch@urth.org> - Florian Ragwitz
<rafl@debian.org> - Jesse Luehrs
<doy@tozt.net> - Karen Etheridge
<ether@cpan.org>
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2012 by Infinity Interactive, Inc..
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
so yeah β free as in go wild, just keep the same terms as perl 5 itself π«Ά
and that's the whole page bestie!! π this beauty shipped with perl v5.34.0 and the date on the tin is 2022-06-14 β so like, it's been out here being a solid little base class since 2012 and still got a refresh in 2022. legacy behavior, honestly. slay πβ¨π
π¦ where this page comes from
- debian bookworm: libhttp-headers-actionpack-perl 0.09-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libhttp-headers-actionpack-perl 0.09-2 Β· 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