class

EasyAwscr::S3::Internals::ConnectionPool

Inherits Awscr::S3::HttpClientFactory < Reference < Object

Constructors

new(*, max_ttl : Time::Span | Nil = 5.minutes, max_size : Int32 = 128)
Source

Instance methods

acquire_client(endpoint : URI, signer : Awscr::Signer::Signers::Interface) : HTTP::Client

Acquires a fully configured HTTP::Client, with the signer attached.

Calls acquire_raw_client internally to retrieve a client and automatically attaches a signing hook using the provided signer.

Override this method if you need custom logic beyond standard signing.

Source
acquire_raw_client(endpoint : URI) : HTTP::Client

Acquires a raw HTTP::Client for the given endpoint and signer.

Subclasses must implement this method to construct or retrieve a client instance. The returned client is not expected to have a signing hook attached yet.

Source
close
Source
created_at
Source
release(client : HTTP::Client | Nil)

Releases the given HTTP client. This is called when the client is no longer needed.

Source