mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-10-05 00:02:38 -04:00
connection After the connection has been upgraded and session is kept open, subsequent requests were still trying to upgrade it. This fixes it by marking the connection as upgraded, and falling back to normal behaviour when it is.
39 lines
1.4 KiB
Plaintext
39 lines
1.4 KiB
Plaintext
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
|