Sha256: b65e5bfb5f2a2a306958e9964327865e8b1bb460d2005b8cb71643c407c66465

Contents?: true

Size: 1.19 KB

Versions: 20

Compression:

Stored size: 1.19 KB

Contents

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

  type body_encoder = (Transcoder::_Encoder & _ToS) | (Transcoder::_Encoder & _Reader) | (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)

      def content_type: () -> String
    end

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

    interface _Inflater
      def initialize: (Integer | Float bytesize) -> void

      def call: (String chunk) -> String
    end

    interface _Deflater
      def initialize: (Response body) -> void

      def deflate: () -> void

      def call: (StringIO | File buffer, ?chunk_size: Integer) ?{ (String chunk) -> void } -> void
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
httpx-1.3.4 sig/transcoder.rbs
httpx-1.3.3 sig/transcoder.rbs
httpx-1.3.2 sig/transcoder.rbs
httpx-1.3.1 sig/transcoder.rbs
httpx-1.3.0 sig/transcoder.rbs
httpx-1.2.6 sig/transcoder.rbs
httpx-1.2.4 sig/transcoder.rbs
httpx-1.2.3 sig/transcoder.rbs
httpx-1.2.2 sig/transcoder.rbs
httpx-1.2.1 sig/transcoder.rbs
httpx-1.2.0 sig/transcoder.rbs
httpx-1.1.5 sig/transcoder.rbs
httpx-1.1.4 sig/transcoder.rbs
httpx-1.1.3 sig/transcoder.rbs
httpx-1.1.2 sig/transcoder.rbs
httpx-1.1.1 sig/transcoder.rbs
httpx-1.1.0 sig/transcoder.rbs
httpx-1.0.2 sig/transcoder.rbs
httpx-1.0.1 sig/transcoder.rbs
httpx-1.0.0 sig/transcoder.rbs