sig/session.rbs in httpx-0.16.1 vs sig/session.rbs in httpx-0.17.0

- old
+ new

@@ -7,29 +7,23 @@ @options: Options @responses: Hash[Request, response] @persistent: bool? + def self.plugin: (Symbol | Module plugin, ?options? options) ?{ (Class) -> void } -> singleton(Session) + + def self.default_options: -> Options + def wrap: () { (instance) -> void } -> void def close: (*untyped) -> void - def request: (*Request, **untyped) -> (response | Array[response]) - | (*untyped, **untyped) -> (response | Array[response]) - def build_request: (String | verb, generic_uri, ?options) -> Request - # def self.plugin: (Symbol | Module, ?options) { (Class) -> void } -> singleton(Session) - # | (Symbol | Module, ?options) -> singleton(Session) - - - - def self.default_options: -> Options - private - def initialize: (?options) { (instance) -> void } -> untyped + def initialize: (?options) { (self) -> void } -> untyped | (?options) -> untyped def pool: -> Pool def on_response: (Request, response) -> void def on_promise: (untyped, untyped) -> void @@ -47,12 +41,12 @@ | (verb | string, _Each[[uri, options]], Options) -> Array[Request] | (verb | string, _Each[uri], options) -> Array[Request] def build_connection: (URI::Generic, Options) -> Connection - def send_requests: (*Request, options) -> Array[response] + def send_requests: (*Request) -> Array[response] - def _send_requests: (Array[Request], Options) -> Array[Connection] + def _send_requests: (Array[Request]) -> Array[Connection] - def receive_requests: (Array[Request], Array[Connection], options) -> Array[response] + def receive_requests: (Array[Request], Array[Connection]) -> Array[response] end end \ No newline at end of file