The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

HTTP::Promise::Headers::TE - TE Header Field

SYNOPSIS

    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

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:

    TE: deflate
    TE: gzip
    TE: trailers

    # Multiple directives, weighted with the quality value syntax:
    TE: trailers, deflate;q=0.5

METHODS

See HTTP::Promise::Headers::Accept

AUTHOR

Jacques Deguest <jack@deguest.jp>

SEE ALSO

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 & 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.