NAME

HTTP::Promise::Headers::KeepAlive - Keep Alive Header Field

SYNOPSIS

use HTTP::Promise::Headers::KeepAlive;
my $keep = HTTP::Promise::Headers::KeepAlive->new || 
    die( HTTP::Promise::Headers::KeepAlive->error, "\n" );
$keep->max(1000);
$keep->timeout(10);

VERSION

v0.1.0

DESCRIPTION

The following is an extract from Mozilla documentation.

The Keep-Alive general header allows the sender to hint about how the connection may be used to set a timeout and a maximum amount of requests.

For example response containing a Keep-Alive header:

HTTP/1.1 200 OK
Connection: Keep-Alive
Content-Encoding: gzip
Content-Type: text/html; charset=utf-8
Date: Thu, 11 Aug 2016 15:23:13 GMT
Keep-Alive: timeout=5, max=1000
Last-Modified: Mon, 25 Jul 2016 04:32:39 GMT
Server: Apache

METHODS

as_string

Returns a string representation of the Keep-Alive object.

max

An integer that is the maximum number of requests that can be sent on this connection before closing it.

params

Returns the array object used by this header field object containing all the properties set.

properties

Returns the hash object used as a repository of properties.

timeout

An integer that is the time in seconds that the host will allow an idle connection to remain open before it is closed.

AUTHOR

Jacques Deguest <jack@deguest.jp>

SEE ALSO

See also rfc7230, section A.1.2 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.