mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-10-04 00:00:37 -04:00
46 lines
2.2 KiB
Plaintext
46 lines
2.2 KiB
Plaintext
module HTTPX
|
|
module Chainable
|
|
def request: (*Request, **untyped) -> Array[response]
|
|
| (Request, **untyped) -> response
|
|
| (verb | string, uri | [uri], **untyped) -> response
|
|
| (Array[[verb | string, uri] | [verb | string, uri, options]], **untyped) -> Array[response]
|
|
| (verb | string, _Each[uri | [uri, options]], **untyped) -> 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::sessionBasicAuth
|
|
| (:digest_authentication, ?options) -> Plugins::sessionDigestAuth
|
|
| (:ntlm_authentication, ?options) -> Plugins::sessionNTLMAuth
|
|
| (: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 & Plugins::httpProxy)
|
|
| (: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
|
|
| (:response_cache, ?options) -> Plugins::sessionResponseCache
|
|
| (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
|