Sha256: 632047149c86e02326daaefe8103d73f5b8d64ace0fa471bd1e8e737720879b1

Contents?: true

Size: 856 Bytes

Versions: 8

Compression:

Stored size: 856 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: () -> (Integer | Float)
    end

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
httpx-0.22.5 sig/transcoder.rbs
httpx-0.22.4 sig/transcoder.rbs
httpx-0.22.3 sig/transcoder.rbs
httpx-0.22.2 sig/transcoder.rbs
httpx-0.22.1 sig/transcoder.rbs
httpx-0.22.0 sig/transcoder.rbs
httpx-0.21.1 sig/transcoder.rbs
httpx-0.21.0 sig/transcoder.rbs