mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-12-07 00:00:31 -05:00
small sig fixes
This commit is contained in:
parent
e9e3063dcc
commit
fbe8a16b1c
@ -13,8 +13,7 @@ module HTTPX
|
|||||||
type timeout_type = :connect_timeout | :settings_timeout | :operation_timeout | :keep_alive_timeout | :total_timeout
|
type timeout_type = :connect_timeout | :settings_timeout | :operation_timeout | :keep_alive_timeout | :total_timeout
|
||||||
type timeout = Hash[timeout_type, Numeric?]
|
type timeout = Hash[timeout_type, Numeric?]
|
||||||
|
|
||||||
def self.new: (options) -> instance
|
def self.new: (?options) -> instance
|
||||||
| () -> instance
|
|
||||||
|
|
||||||
def self.def_option: (Symbol, ?String) -> void
|
def self.def_option: (Symbol, ?String) -> void
|
||||||
| (Symbol) { (*nil) -> untyped } -> void
|
| (Symbol) { (*nil) -> untyped } -> void
|
||||||
|
|||||||
@ -3,11 +3,7 @@ module HTTPX
|
|||||||
module Persistent
|
module Persistent
|
||||||
def self.load_dependencies: (singleton(Session)) -> void
|
def self.load_dependencies: (singleton(Session)) -> void
|
||||||
|
|
||||||
interface _PersistentOptions
|
def self.extra_options: (Options) -> (Options)
|
||||||
def persistent: () -> bool?
|
|
||||||
end
|
|
||||||
|
|
||||||
def self.extra_options: (Options) -> (Options & _PersistentOptions)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
type sessionPersistent = sessionFollowRedirects
|
type sessionPersistent = sessionFollowRedirects
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user