Sha256: 76629b76931a40d5002778037df31d50ae80734b215b0011ad52d9f5c59f53dc

Contents?: true

Size: 1.05 KB

Versions: 11

Compression:

Stored size: 1.05 KB

Contents

module HTTPX
  module AltSvc
    module ConnectionMixin

      def send: (Request request) -> void

      def match?: (URI::Generic uri, Options options) -> bool

      private

      def match_altsvcs?: (URI::Generic uri) -> bool

      def match_altsvc_options?: (URI::Generic uri, Options options) -> bool
    end

    type altsvc_params = Hash[String, untyped]

    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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
httpx-1.3.4 sig/altsvc.rbs
httpx-1.3.3 sig/altsvc.rbs
httpx-1.3.2 sig/altsvc.rbs
httpx-1.3.1 sig/altsvc.rbs
httpx-1.3.0 sig/altsvc.rbs
httpx-1.2.6 sig/altsvc.rbs
httpx-1.2.4 sig/altsvc.rbs
httpx-1.2.3 sig/altsvc.rbs
httpx-1.2.2 sig/altsvc.rbs
httpx-1.2.1 sig/altsvc.rbs
httpx-1.2.0 sig/altsvc.rbs