NAME
HTTP::Promise::Pool - HTTP Connections Cache
SYNOPSIS
use HTTP::Promise::Pool;
my $this = HTTP::Promise::Pool->new ||
    die( HTTP::Promise::Pool->error, "\n" );
VERSION
v0.2.0
DESCRIPTION
This modules managed a cache of HTTP connections.
METHODS
host
Sets or gets the host. Returns a scalar object
host_port
Read-only. Returns the host and port separated by a semi colon if a port is defined, otherwise returns just the host.
port
Sets or gets the port. Returns a number object
push
Add the host, port and socket provided to the stack.
reset
Resets the host and port
sock
Sets or gets the socket.
steal
Provided with an host and port, this checks if those matches the current values, and returns the current socket after resetting the object.
THREAD-SAFETY
This module is thread-safe for all operations, as it operates on per-object state and uses thread-safe external libraries.
AUTHOR
Jacques Deguest <jack@deguest.jp>
SEE ALSO
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.