HTTP::...ionInfo(3pm)

πŸ’– HTTP::Headers::ActionPack::AuthenticationInfo πŸ’–

okay bestie, so this page is HTTP::...ionInfo(3pm) from the User Contributed Perl Documentation, and it's literally the manual for the Authentication-Info header. it's giving ✨ headers, it's giving ✨ params, it's giving ✨ nothing scary. let's get into it 🫢


🌸 NAME 🌸

HTTP::Headers::ActionPack::AuthenticationInfo β€” The Authentication-Info Header πŸŽ€


✨ VERSION ✨

version 0.09 β€” yeah she's on 0.09, and she's iconic for it πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

okay so here's how you actually use this thing. first you load it:

use HTTP::Headers::ActionPack::AuthenticationInfo;

then if you already have the header as a string, you just hand it over and it does the whole parsing moment:

# create from string
my $auth_info = HTTP::Headers::ActionPack::AuthenticationInfo->new_from_string(
    'qop=auth-int, rspauth="6629fae49393a05397450978507c4ef1", cnonce="0a4f113b", nc=00000001'
);

or, if you'd rather build it from parameters yourself, that's also fully valid and lowkey cleaner:

# create from parameters
my $auth_info = HTTP::Headers::ActionPack::AuthenticationInfo->new(
    qop     => 'auth-int',
    rspauth => "6629fae49393a05397450978507c4ef1",
    cnonce  => "0a4f113b",
    nc      => '00000001'
);

both paths, same destination, no cap 🧚


πŸ’œ DESCRIPTION πŸ’œ

so this class represents the Authentication-Info header. and the way that it's a pretty parameter based header?? yeah, exactly β€” so it inherits from HTTP::Headers::ActionPack::Core::BaseHeaderWithParams to handle all the parameters. that's the whole vibe. it doesn't redo the param work, it lets the base class carry that and just shows up looking cute πŸ‘‘


πŸŽ€ METHODS πŸŽ€

here's the full lineup, no skips, no cuts:

  • "new ( %params )"
  • "new_from_string ( $header_string )"
  • "as_string"

periodt. that's the whole method roster πŸ’…


πŸ‘‘ AUTHOR πŸ‘‘

Stevan Little <stevan.little@iinteractive.com> β€” legend behaviour, honestly 🌟


🌈 CONTRIBUTORS 🌈

the group chat that made this happen, shoutout to every single one:

  • 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.


fr fr bestie, that license line is a real one β€” free software, same terms as perl itself. don't be weird about it πŸ™ˆ

and that's the whole page!! this doc came to you via perl v5.34.0 and it's dated 2022-06-14, so go forth and parse those headers, you absolute main character πŸ¦‹πŸ’–βœ¨

πŸ“¦ where this page comes from