httpx/sig/httpx.rbs
HoneyryderChuck 092e594a4b Request.verb is now an upcased string (ex: "GET")
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.
2023-04-17 16:54:31 +03:00

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