Sha256: 130edf56b121ab0e3627dd9b2ae64f6aab4a6321b74d127a09f868edd792502c

Contents?: true

Size: 1.78 KB

Versions: 18

Compression:

Stored size: 1.78 KB

Contents

module HTTPX
  class Session
    include Loggable
    include Chainable

    EMPTY_HASH: Hash[untyped, untyped]

    @options: Options
    @responses: Hash[Request, response]
    @persistent: bool?

    def self.plugin: (Symbol | Module plugin, ?options? options) ?{ (Class) -> void } -> singleton(Session)

    def self.default_options: -> Options

    def wrap: () { (instance) -> void } -> void

    def close: (*untyped) -> void

    def build_request: (String | verb, generic_uri, ?options) -> Request

    private

    def initialize: (?options) { (self) -> void } -> untyped
                  | (?options) -> untyped

    def pool: -> Pool
    def on_response: (Request, response) -> void
    def on_promise: (untyped, untyped) -> void
    def fetch_response: (Request request, untyped, untyped) -> response?

    def find_connection: (Request, Array[Connection] connections, Options options) -> Connection

    def set_connection_callbacks: (Connection, Array[Connection], Options) -> void

    def build_altsvc_connection: (Connection, Array[Connection], URI::Generic, String, Hash[String, String], Options) -> Connection?

    def build_requests: (verb | string, uri, options) -> Array[Request]
                      | (Array[[verb | string, uri, options]], options) -> Array[Request]
                      | (Array[[verb | string, uri]], options) -> Array[Request]
                      | (verb | string, _Each[[uri, options]], Options) -> Array[Request]
                      | (verb | string, _Each[uri], options) -> Array[Request]

    def build_connection: (URI::Generic, Options) -> Connection

    def send_requests: (*Request) -> Array[response]

    def _send_requests: (Array[Request]) -> Array[Connection]

    def receive_requests: (Array[Request], Array[Connection]) -> Array[response]
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
httpx-0.19.8 sig/session.rbs
httpx-0.19.7 sig/session.rbs
httpx-0.19.6 sig/session.rbs
httpx-0.19.5 sig/session.rbs
httpx-0.19.4 sig/session.rbs
httpx-0.19.3 sig/session.rbs
httpx-0.19.2 sig/session.rbs
httpx-0.19.1 sig/session.rbs
httpx-0.19.0 sig/session.rbs
httpx-0.18.7 sig/session.rbs
httpx-0.18.6 sig/session.rbs
httpx-0.18.5 sig/session.rbs
httpx-0.18.4 sig/session.rbs
httpx-0.18.3 sig/session.rbs
httpx-0.18.2 sig/session.rbs
httpx-0.18.1 sig/session.rbs
httpx-0.18.0 sig/session.rbs
httpx-0.17.0 sig/session.rbs