mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-10-06 00:02:08 -04:00
The reference for a request verb is now the string which is used everywhere else, instead of the symbol corresponding to it. This was an artifact from the import from httprb, and there is no advantage in it, since these strings are frozen in most use cases, and the transformations from symbol to strings being performed everywhere are prooof that keeping the atom isn't really bringing any benefit.
22 lines
609 B
Plaintext
22 lines
609 B
Plaintext
module HTTPX
|
|
extend Chainable
|
|
|
|
EMPTY: Array[untyped]
|
|
|
|
VERSION: String
|
|
|
|
type uri = URI::HTTP | URI::HTTPS | string
|
|
type generic_uri = String | URI::Generic
|
|
|
|
type verb = "OPTIONS" | "GET" | "HEAD" | "POST" | "PUT" | "DELETE" | "TRACE" | "CONNECT" |
|
|
"PROPFIND" | "PROPPATCH" | "MKCOL" | "COPY" | "MOVE" | "LOCK" | "UNLOCK" | "ORDERPATCH" |
|
|
"ACL" | "REPORT" | "PATCH" | "SEARCH"
|
|
|
|
type ip_family = Integer #Socket::AF_INET6 | Socket::AF_INET
|
|
|
|
module Plugins
|
|
def self?.load_plugin: (Symbol) -> Module
|
|
|
|
def self?.register_plugin: (Symbol, Module) -> void
|
|
end
|
|
end |