httpx/sig/chainable.rbs
HoneyryderChuck 72a397b841 added (and fixing bug for) test of subsequent request on upgraded
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.
2021-03-05 12:23:07 +00:00

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