class EasyAwscr::S3::Internals::ConnectionPool

Defined in:

easy-awscr/s3/internals/connection_pool.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]

Instance Method Detail

def acquire_client(endpoint : URI, signer : Awscr::Signer::Signers::Interface) : HTTP::Client #
Description copied from class Awscr::S3::HttpClientFactory

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.


[View source]
def acquire_raw_client(endpoint : URI) : HTTP::Client #
Description copied from class Awscr::S3::HttpClientFactory

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.


[View source]
def close #

[View source]
def created_at : Time #

[View source]
def release(client : HTTP::Client | Nil) #
Description copied from class Awscr::S3::HttpClientFactory

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


[View source]