NAME
HTTP::Promise::Headers::WantDigest - Want-Digest Header Field
SYNOPSIS
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
VERSION
v0.1.0
DESCRIPTION
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
METHODS
See HTTP::Promise::Headers::Accept
AUTHOR
Jacques Deguest <jack@deguest.jp>
SEE ALSO
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 & LICENSE
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.