Sha256: adbba8a083a3e2b99cc16d3888b0960bac25d5ad98e59ef57065507dae1f9a9b

Contents?: true

Size: 759 Bytes

Versions: 2

Compression:

Stored size: 759 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: (_ToS key, _ToAry[untyped] | _ToHash[_ToS, untyped] | untyped value) { (String, ?untyped) -> void } -> void
                           | (_ToS key, untyped value, Proc? cond) { (String, untyped) -> void } -> void

    interface _Encode
      def encode: (untyped payload) -> (_Encoder | _Each[String])
    end

    interface _Encoder
      def bytesize: () -> Numeric
    end

    interface _Decoder
      def decode: (string) -> String
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
httpx-0.16.1 sig/transcoder.rbs
httpx-0.16.0 sig/transcoder.rbs