HTTP::Promise::Headers::KeepAlive - Keep Alive Header Field
my $keep = HTTP::Promise::Headers::KeepAlive->new ||
die( HTTP::Promise::Headers::KeepAlive->error, "\n" );
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
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
Returns a string representation of the Keep-Alive object.
An integer that is the maximum number of requests that can be sent on this connection before closing it.
Returns the array object used by this header field object containing all the properties set.
Returns the hash object used as a repository of properties.
An integer that is the time in seconds that the host will allow an idle connection to remain open before it is closed.
Jacques Deguest <email@example.com>
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(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.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.