Sha256: b38b142533d22954e08ce39b5a6174a2131b25c3c7337c15917d771cbd6671f0

Contents?: true

Size: 1.39 KB

Versions: 9

Compression:

Stored size: 1.39 KB

Contents

module HTTPX
  module Chainable
    def request: (*untyped, **untyped) -> (response | Array[response])
    def accept: (String) -> Session
    def wrap: () { (Session) -> void } -> void
            | () -> void

    def with: (options) -> Session
            | (options) { (Session) -> Session} -> Session




    def plugin: (:authentication) -> Plugins::sessionAuthentication
              | (:basic_authentication) -> Plugins::sessionBasicAuthentication
              | (:digest_authentication) -> Plugins::sessionDigestAuthentication
              | (:compression) -> Session
              | (:cookies) -> Plugins::sessionCookies
              | (:expect) -> Session
              | (:follow_redirects) -> Plugins::sessionFollowRedirects
              | (:upgrade) -> Session
              | (:h2c) -> Session
              | (:multipart) -> Session
              | (:persistent) -> Plugins::sessionPersistent
              | (:proxy) -> Plugins::sessionProxy
              | (:push_promise) -> Plugins::sessionPushPromise
              | (:retries) -> Plugins::sessionRetries
              | (:stream) -> Plugins::sessionStream
              | (Symbol | Module, ?options?) { (Class) -> void } -> Session
              | (Symbol | Module, ?options?) -> Session

    private

    def default_options: () -> Options
    def branch: (options) -> Session
              | (options) { (Session) -> Session } -> Session
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
httpx-0.14.5 sig/chainable.rbs
httpx-0.14.4 sig/chainable.rbs
httpx-0.14.3 sig/chainable.rbs
httpx-0.14.2 sig/chainable.rbs
httpx-0.14.1 sig/chainable.rbs
httpx-0.14.0 sig/chainable.rbs
httpx-0.13.2 sig/chainable.rbs
httpx-0.13.1 sig/chainable.rbs
httpx-0.13.0 sig/chainable.rbs