sig/connection.rbs in httpx-0.16.1 vs sig/connection.rbs in httpx-0.17.0
- old
+ new
@@ -1,8 +1,7 @@
module HTTPX
class Connection
-
interface _Parser
def on: (Symbol) { (*untyped) -> void } -> void
def empty?: () -> bool
# def exhausted?: () -> bool
@@ -24,10 +23,11 @@
attr_reader origin: URI::Generic
attr_reader state: Symbol
attr_reader pending: Array[Request]
attr_reader options: Options
+ attr_writer timers: untyped # Timers::Timer
def addresses: () -> Array[ipaddr]?
def addresses=: (Array[ipaddr]) -> void
@@ -35,24 +35,24 @@
def mergeable?: (Connection) -> bool
def coalescable?: (Connection) -> bool
- def create_idle: (options) -> Connection
- | () -> Connection
+ def create_idle: (?Hash[Symbol, untyped] options) -> Connection
def merge: (Connection) -> void
def purge_pending: () { (Request) -> void } -> void
def match_altsvcs?: (URI::Generic uri) -> bool
def connecting?: () -> bool
+
def inflight?: () -> boolish
def interests: () -> io_interests?
- def to_io: () -> _ToIO
+ def to_io: () -> IO
def call: () -> void
def close: () -> void
def reset: () -> void
\ No newline at end of file