mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-10-04 00:00:37 -04:00
fixinng the signatures for the last rbs upstream
This commit is contained in:
parent
6cc24b63f5
commit
1e21c33da0
@ -39,7 +39,7 @@ module HTTPX
|
|||||||
class Encoder
|
class Encoder
|
||||||
include Transcoder::_Encoder
|
include Transcoder::_Encoder
|
||||||
include _ToS
|
include _ToS
|
||||||
include _Each[String, untyped]
|
include _Each[String]
|
||||||
|
|
||||||
def close: () -> void
|
def close: () -> void
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@ module HTTPX
|
|||||||
class Jar
|
class Jar
|
||||||
type cookie = Cookie | Array[String, String, cookie_attributes] | Array[String, String] | cookie_attributes
|
type cookie = Cookie | Array[String, String, cookie_attributes] | Array[String, String] | cookie_attributes
|
||||||
|
|
||||||
include Enumerable[Cookie, void]
|
include Enumerable[Cookie]
|
||||||
|
|
||||||
@cookies: Array[Cookie]
|
@cookies: Array[Cookie]
|
||||||
|
|
||||||
@ -15,9 +15,9 @@ module HTTPX
|
|||||||
def []: (uri) -> Array[Cookie]
|
def []: (uri) -> Array[Cookie]
|
||||||
|
|
||||||
def each: (uri) { (Cookie) -> void } -> void
|
def each: (uri) { (Cookie) -> void } -> void
|
||||||
| (uri) -> Enumerable[Cookie, void]
|
| (uri) -> Enumerable[Cookie]
|
||||||
| () { (Cookie) -> void } -> void
|
| () { (Cookie) -> void } -> void
|
||||||
| () -> Enumerable[Cookie, void]
|
| () -> Enumerable[Cookie]
|
||||||
private
|
private
|
||||||
|
|
||||||
def initialize: () -> void
|
def initialize: () -> void
|
||||||
|
@ -1,18 +1,39 @@
|
|||||||
module HTTPX
|
module HTTPX
|
||||||
module Plugins
|
module Plugins
|
||||||
module Stream
|
module Stream
|
||||||
# def self.load_dependencies: (singleton(Session)) -> void
|
|
||||||
|
|
||||||
module InstanceMethods
|
module InstanceMethods
|
||||||
def stream: () -> instance
|
private
|
||||||
|
|
||||||
|
# def request: (*Request, stream: false, **untyped) -> (response | Array[response])
|
||||||
|
# | (*untyped, stream: false, **untyped) -> (response | Array[response])
|
||||||
|
end
|
||||||
|
|
||||||
|
module RequestMethods
|
||||||
|
attr_accessor stream: StreamResponse?
|
||||||
end
|
end
|
||||||
|
|
||||||
module ResponseMethods
|
module ResponseMethods
|
||||||
def complete?: () -> bool
|
def stream: () -> StreamResponse?
|
||||||
def stream?: () -> bool
|
end
|
||||||
|
|
||||||
|
class StreamResponse
|
||||||
|
include _ToS
|
||||||
|
|
||||||
|
def each: () { (String) -> void } -> void
|
||||||
|
| () -> Enumerable[String]
|
||||||
|
|
||||||
|
def each_line: () { (String) -> void } -> void
|
||||||
|
| () -> Enumerable[String]
|
||||||
|
|
||||||
|
def on_chunk: (string) -> void
|
||||||
|
|
||||||
|
private
|
||||||
|
|
||||||
|
def response: () -> response
|
||||||
|
def initialize: (Request, Session) -> untyped
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
type sessionStream = Session & Plugins::H2C::InstanceMethods
|
type sessionStream = Session & Plugins::Stream::InstanceMethods
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -42,7 +42,7 @@ module HTTPX
|
|||||||
class Body
|
class Body
|
||||||
def initialize: (Headers, Options) -> untyped
|
def initialize: (Headers, Options) -> untyped
|
||||||
def each: () { (String) -> void } -> void
|
def each: () { (String) -> void } -> void
|
||||||
| () -> Enumerable[String, void]
|
| () -> Enumerable[String]
|
||||||
|
|
||||||
def empty?: () -> bool
|
def empty?: () -> bool
|
||||||
def bytesize: () -> Integer
|
def bytesize: () -> Integer
|
||||||
|
@ -39,7 +39,7 @@ module HTTPX
|
|||||||
@state: :idle | :memory | :buffer
|
@state: :idle | :memory | :buffer
|
||||||
|
|
||||||
def each: () { (String) -> void } -> void
|
def each: () { (String) -> void } -> void
|
||||||
| () -> Enumerable[String, void]
|
| () -> Enumerable[String]
|
||||||
|
|
||||||
def bytesize: () -> Integer
|
def bytesize: () -> Integer
|
||||||
def empty?: () -> bool
|
def empty?: () -> bool
|
||||||
|
@ -3,9 +3,9 @@ module HTTPX::Transcoder
|
|||||||
def self?.encode: (_Encoder chunks) -> Encoder
|
def self?.encode: (_Encoder chunks) -> Encoder
|
||||||
|
|
||||||
class Encoder
|
class Encoder
|
||||||
@raw: _Each[String, untyped]
|
@raw: _Each[String]
|
||||||
|
|
||||||
include _Each[String, untyped]
|
include _Each[String]
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
@ -14,7 +14,7 @@ module HTTPX::Transcoder
|
|||||||
|
|
||||||
class Decoder
|
class Decoder
|
||||||
include _ToS
|
include _ToS
|
||||||
include _Each[String, untyped]
|
include _Each[String]
|
||||||
|
|
||||||
def finished?: () -> bool
|
def finished?: () -> bool
|
||||||
def empty?: () -> bool
|
def empty?: () -> bool
|
||||||
|
Loading…
x
Reference in New Issue
Block a user