Sha256: 869fd302374f62dcd007a7e4e8cd727e530c50ab4d77ade0b92921a66874ef3f

Contents?: true

Size: 1.37 KB

Versions: 8

Compression:

Stored size: 1.37 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
              | (:h2c) -> Plugins::sessionH2C
              | (: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

8 entries across 8 versions & 1 rubygems

Version Path
httpx-0.12.0 sig/chainable.rbs
httpx-0.11.3 sig/chainable.rbs
httpx-0.11.2 sig/chainable.rbs
httpx-0.11.1 sig/chainable.rbs
httpx-0.11.0 sig/chainable.rbs
httpx-0.10.2 sig/chainable.rbs
httpx-0.10.1 sig/chainable.rbs
httpx-0.10.0 sig/chainable.rbs