Sha256: 18ba782f9efd964fc1e4e9a1168e8b7c4d4e568af4a4a11a997dea2725ad8575

Contents?: true

Size: 832 Bytes

Versions: 13

Compression:

Stored size: 832 Bytes

Contents

module HTTPX
  module Transcoder
    module GRPCEncoding

      def self?.encode: (body_encoder body, compressed: bool) -> Deflater

      def self?.decode: (Response | StreamResponse response) -> Inflater

      class Deflater
        attr_reader content_type: String

        @body: BodyReader
        @compressed: bool

        def initialize: (body_encoder body, compressed: bool) -> void

        def bytesize: () -> (Integer | Float)

        def read: (?int? length, ?string outbuf) -> String?
      end

      class Inflater
        @response: Response
        @grpc_encodings: Array[String]

        def initialize: (Response | StreamResponse response) -> void

        def call: (String message) ?{ (String) -> void } -> String

        private

        def grpc_encodings: () -> Array[String]
      end

    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
httpx-1.3.4 sig/plugins/grpc/grpc_encoding.rbs
httpx-1.3.3 sig/plugins/grpc/grpc_encoding.rbs
httpx-1.3.2 sig/plugins/grpc/grpc_encoding.rbs
httpx-1.3.1 sig/plugins/grpc/grpc_encoding.rbs
httpx-1.3.0 sig/plugins/grpc/grpc_encoding.rbs
httpx-1.2.6 sig/plugins/grpc/grpc_encoding.rbs
httpx-1.2.4 sig/plugins/grpc/grpc_encoding.rbs
httpx-1.2.3 sig/plugins/grpc/grpc_encoding.rbs
httpx-1.2.2 sig/plugins/grpc/grpc_encoding.rbs
httpx-1.2.1 sig/plugins/grpc/grpc_encoding.rbs
httpx-1.2.0 sig/plugins/grpc/grpc_encoding.rbs
httpx-1.1.5 sig/plugins/grpc/grpc_encoding.rbs
httpx-1.1.4 sig/plugins/grpc/grpc_encoding.rbs