Sha256: 3786a5b6929eec6b4cfadb552589e32c0849fb3ff42f09894a9c2ee430ea47af

Contents?: true

Size: 807 Bytes

Versions: 9

Compression:

Stored size: 807 Bytes

Contents

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

  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) -> (_Encoder | _Each[String])
    end

    interface _Encoder
      def bytesize: () -> Numeric
    end

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
httpx-0.18.7 sig/transcoder.rbs
httpx-0.18.6 sig/transcoder.rbs
httpx-0.18.5 sig/transcoder.rbs
httpx-0.18.4 sig/transcoder.rbs
httpx-0.18.3 sig/transcoder.rbs
httpx-0.18.2 sig/transcoder.rbs
httpx-0.18.1 sig/transcoder.rbs
httpx-0.18.0 sig/transcoder.rbs
httpx-0.17.0 sig/transcoder.rbs