Sha256: 07347e64c05043f90d341fc816426e674a7c005d99a6fe674c68ec21f9ff478d

Contents?: true

Size: 1.85 KB

Versions: 2

Compression:

Stored size: 1.85 KB

Contents

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

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

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

    private

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
httpx-0.16.1 sig/chainable.rbs
httpx-0.16.0 sig/chainable.rbs