Sha256: 7de8ccfd12ce1078f9da6aac1925cfc991f056af5962c2293ad0371ceea68ebd

Contents?: true

Size: 853 Bytes

Versions: 15

Compression:

Stored size: 853 Bytes

Contents

module HTTPX
  type bodyIO = _Reader | _Each[[String, untyped]] | _ToS

  type body_encoder = Transcoder::_Encoder | _Each[String]

  module Transcoder
    def self?.registry: (String tag) -> _Encode
                   | () -> Hash[String, _Encode]

    def self?.register: (String tag, _Encode handler) -> void

    def self?.normalize_keys: [U] (_ToS key, _ToAry[untyped] | _ToHash[_ToS, untyped] | untyped value, ?(^(untyped value) -> bool | nil) cond) { (String, ?untyped) -> U } -> U

    def self?.normalize_query: (Hash[String, untyped] params, String name, String v, Integer depth) -> void

    interface _Encode
      def encode: (untyped payload) -> body_encoder
    end

    interface _Encoder
      def bytesize: () -> Numeric
    end

    interface _Decoder
      def call: (Response response, untyped options) -> untyped
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
httpx-0.20.5 sig/transcoder.rbs
httpx-0.20.4 sig/transcoder.rbs
httpx-0.20.3 sig/transcoder.rbs
httpx-0.20.2 sig/transcoder.rbs
httpx-0.20.1 sig/transcoder.rbs
httpx-0.20.0 sig/transcoder.rbs
httpx-0.19.8 sig/transcoder.rbs
httpx-0.19.7 sig/transcoder.rbs
httpx-0.19.6 sig/transcoder.rbs
httpx-0.19.5 sig/transcoder.rbs
httpx-0.19.4 sig/transcoder.rbs
httpx-0.19.3 sig/transcoder.rbs
httpx-0.19.2 sig/transcoder.rbs
httpx-0.19.1 sig/transcoder.rbs
httpx-0.19.0 sig/transcoder.rbs