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>

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