mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-10-04 00:00:37 -04: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 = Hash[timeout_type, Numeric?]
|
||||
|
||||
def self.new: (options) -> instance
|
||||
| () -> instance
|
||||
def self.new: (?options) -> instance
|
||||
|
||||
def self.def_option: (Symbol, ?String) -> void
|
||||
| (Symbol) { (*nil) -> untyped } -> void
|
||||
|
@ -3,11 +3,7 @@ module HTTPX
|
||||
module Persistent
|
||||
def self.load_dependencies: (singleton(Session)) -> void
|
||||
|
||||
interface _PersistentOptions
|
||||
def persistent: () -> bool?
|
||||
end
|
||||
|
||||
def self.extra_options: (Options) -> (Options & _PersistentOptions)
|
||||
def self.extra_options: (Options) -> (Options)
|
||||
end
|
||||
|
||||
type sessionPersistent = sessionFollowRedirects
|
||||
|
Loading…
x
Reference in New Issue
Block a user