HTTP::Promise::Headers::TE - TE Header Field
use HTTP::Promise::Headers::TE; my $te = HTTP::Promise::Headers::TE->new || die( HTTP::Promise::Headers::TE->error, "\n" ); my $e = $te->add( 'gzip' ); # Set deflate with a weight of 0.5 my $e1 = $te->add( 'deflate' => 0.5 ); my $e2 = $te->get( $e1 ); # $e1 and $e2 are the same my $e2 = $te->get( 'deflate' ); say $e2->value; # 0.5 $e2->value(0.7); # Change it to 0.7 say "$te"; # gzip, deflate;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:
TE: deflate TE: gzip TE: trailers # Multiple directives, weighted with the quality value syntax: TE: trailers, deflate;q=0.5
See HTTP::Promise::Headers::Accept
Jacques Deguest <jack@deguest.jp>
See also rfc7230, section 4.3 and 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.