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 )
  • username
  • realm
  • as_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>

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