HTTP::Promise::Headers::WantDigest - Want-Digest Header Field
use HTTP::Promise::Headers::WantDigest; my $want = HTTP::Promise::Headers::WantDigest->new || die( HTTP::Promise::Headers::WantDigest->error, "\n" ); my $e = $te->add( 'sha-256' ); # Set deflate with a weight of 0.3 my $e1 = $te->add( 'SHA-512' => 0.5 ); my $e2 = $te->get( $e1 ); # $e1 and $e2 are the same my $e2 = $te->get( 'SHA-512' ); say $e2->value; # 0.5 $e2->value(0.7); # Change it to 0.7 say "$te"; # sha-256, SHA-512;q=0.7
v0.1.0
This class inherits all its features from HTTP::Promise::Headers::Accept
The following description is taken from Mozilla documentation.
Example:
Want-Digest: sha-256 Want-Digest: SHA-512;q=0.3, sha-256;q=1, md5;q=0
See HTTP::Promise::Headers::Accept
Jacques Deguest <jack@deguest.jp>
See also Mozilla documentation
HTTP::Promise, HTTP::Promise::Request, HTTP::Promise::Response, HTTP::Promise::Message, HTTP::Promise::Entity, HTTP::Promise::Headers, HTTP::Promise::Body, HTTP::Promise::Body::Form, HTTP::Promise::Body::Form::Data, HTTP::Promise::Body::Form::Field, HTTP::Promise::Status, HTTP::Promise::MIME, HTTP::Promise::Parser, HTTP::Promise::IO, HTTP::Promise::Stream, HTTP::Promise::Exception
Copyright(c) 2022 DEGUEST Pte. Ltd.
All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install HTTP::Promise, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTTP::Promise
CPAN shell
perl -MCPAN -e shell install HTTP::Promise
For more information on module installation, please visit the detailed CPAN module installation guide.