Sha256: 93b3a5f542e1b1cb4444a376eaaca43e1e7f1b8d15656213c395f561d6e66812

Contents?: true

Size: 783 Bytes

Versions: 13

Compression:

Stored size: 783 Bytes

Contents

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

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

  module Transcoder
    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 _Decode
      def decode: (HTTPX::Response response) -> _Decoder
    end

    interface _Encoder
      def bytesize: () -> (Integer | Float)
    end

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

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
httpx-0.24.7 sig/transcoder.rbs
httpx-0.24.6 sig/transcoder.rbs
httpx-0.24.5 sig/transcoder.rbs
httpx-0.24.4 sig/transcoder.rbs
httpx-0.24.3 sig/transcoder.rbs
httpx-0.24.2 sig/transcoder.rbs
httpx-0.24.1 sig/transcoder.rbs
httpx-0.24.0 sig/transcoder.rbs
httpx-0.23.4 sig/transcoder.rbs
httpx-0.23.3 sig/transcoder.rbs
httpx-0.23.2 sig/transcoder.rbs
httpx-0.23.1 sig/transcoder.rbs
httpx-0.23.0 sig/transcoder.rbs