HTTP::...Digest(3pm)
π HTTP::Headers::ActionPack::Authorization::Digest π
okay so bestie, this is HTTP::Headers::ActionPack::Authorization::Digest (perl 3pm page, iykyk) β the module that handles your Digest Authorization header. come sit with me, it's giving very niche but very useful π«Ά
β¨ VERSION β¨
version 0.09 β yes, she's on 0.09 and she's thriving π
πΈ SYNOPSIS πΈ
look, here's how you summon her. two ways. both iconic.
way one: from a string π
use HTTP::Headers::ActionPack::Authorization::Digest;
# create from string
my $auth = HTTP::Headers::ActionPack::Authorization::Digest->new_from_string(
q{Digest
username="jon.dough@mobile.biz",
realm="RoamingUsers@mobile.biz",
nonce="CjPk9mRqNuT25eRkajM09uTl9nM09uTl9nMz5OX25PZz==",
uri="sip:home.mobile.biz",
qop=auth-int,
nc=00000001,
cnonce="0a4f113b",
response="6629fae49393a05397450978507c4ef1",
opaque="5ccc069c403ebaf9f0171e9517f40e41"}
);
way two: from parameters π¦
# create from parameters
my $auth = HTTP::Headers::ActionPack::Authorization::Digest->new(
'Digest' => (
username => 'jon.dough@mobile.biz',
realm => 'RoamingUsers@mobile.biz',
nonce => "CjPk9mRqNuT25eRkajM09uTl9nM09uTl9nMz5OX25PZz==",
uri => "sip:home.mobile.biz",
qop => 'auth-int',
nc => '00000001',
cnonce => "0a4f113b",
response => "6629fae49393a05397450978507c4ef1",
opaque => "5ccc069c403ebaf9f0171e9517f40e41"
)
);
like. pick your fighter. string or hash. both slay π
π DESCRIPTION π
so what even is this class, you ask? bestie. it represents the Authorization header, with the specific focus being on the 'Basic' type. yes, the docs really do say 'Basic' there and we are simply passing that along, no notes π
and plot twist, she's not doing heavy lifting alone β this is just a simple subclass of HTTP::Headers::ActionPack::Core::BaseAuthHeader. main character energy but with a supportive parent class, we love to see it π
π§ METHODS π§
here's your whole toolkit, no cap:
new ( %params )new_from_string ( $header_string )usernamerealmas_string
that's the list. short, sweet, obsessed β¨
π AUTHOR π
Stevan Little <stevan.little@iinteractive.com> β the blueprint, the origin, the moment π
π CONTRIBUTORS π
the squad that pulled up and made it happen, fr fr:
- 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 basically: free software, same terms as Perl 5 itself, go forth and remix responsibly π«Ά
and that's the whole page bestie!! π this was generated from the perl 3pm manual, perl v5.34.0, dated 2022-06-14 β so if you're reading this way later, hi, hope the Digest header is treating you well ππ mwah, bye!! β¨
π¦ 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