logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

HTTP::Headers::ActionPack::WWWAuthenticate - The WWW-Authenticate Header

Author

Contributors

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

Description

       This class represents the WWW-Authenticate header and all it's variations, it is based on the
       HTTP::Headers::ActionPack::Core::BaseAuthHeader class.

Methods

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

Name

       HTTP::Headers::ActionPack::WWWAuthenticate - The WWW-Authenticate Header

Synopsis

         use HTTP::Headers::ActionPack::WWWAuthenticate;

         # create from string
         my $www_authen = HTTP::Headers::ActionPack::WWWAuthenticate->new_from_string(
             'Basic realm="WallyWorld"'
         );

         # create using parameters
         my $www_authen = HTTP::Headers::ActionPack::WWWAuthenticate->new(
             'Basic' => (
                 realm => 'WallyWorld'
             )
         );

         # create from string
         my $www_authen = HTTP::Headers::ActionPack::WWWAuthenticate->new_from_string(
             q{Digest
                 realm="testrealm@host.com",
                 qop="auth,auth-int",
                 nonce="dcd98b7102dd2f0e8b11d0f600bfb0c093",
                 opaque="5ccc069c403ebaf9f0171e9517f40e41"'}
         );

         # create using parameters
         my $www_authen = HTTP::Headers::ActionPack::WWWAuthenticate->new(
             'Digest' => (
                 realm  => 'testrealm@host.com',
                 qop    => "auth,auth-int",
                 nonce  => "dcd98b7102dd2f0e8b11d0f600bfb0c093",
                 opaque => "5ccc069c403ebaf9f0171e9517f40e41"
             )
         );

Version

       version 0.09

See Also