struct

Shoo::GitHub::Client::ConnectionPool

Inherits Struct < Value < Object

Reuses a fixed set of keep-alive HTTP clients so we pay the TLS handshake once per connection rather than once per request. The pool size is the cap on concurrent GitHub requests, since a checkout blocks once every client is out.

Constants

DEFAULT_SIZE = 25

Constructors

new(host : String, size : Int32 = DEFAULT_SIZE)
Source

Instance methods

checkout
Source