1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
module HTTPX
module AltSvc
module ConnectionMixin
H2_ALTSVC_SCHEMES: Array[String]
def send: (Request request) -> void
def match?: (http_uri uri, Options options) -> bool
private
def match_altsvcs?: (http_uri uri) -> bool
def match_altsvc_options?: (http_uri uri, Options options) -> bool
def altsvc_match?: (http_uri uri, uri other_uri) -> bool
end
type altsvc_params = Hash[String, untyped]
self.@altsvc_mutex: Thread::Mutex
self.@altsvcs: Hash[String, Array[altsvc_params]]
def self?.cached_altsvc: (String origin) -> Array[altsvc_params]
def self?.cached_altsvc_set: (String origin, altsvc_params) -> void
def self?.lookup: (String origin, Integer | Float ttl) -> Array[altsvc_params]
def self?.emit: (Request request, response response) { (http_uri alt_origin, String origin, altsvc_params alt_params) -> void } -> void
def self?.parse: (String altsvc) { (http_uri alt_origin, altsvc_params alt_params) -> void } -> void
| (String altsvc) -> Enumerable[[http_uri, altsvc_params]]
def self?.parse_altsvc_scheme: (String alt_proto) -> String?
def self.parse_altsvc_origin: (string alt_proto, String alt_origin) -> http_uri?
end
end
|