Sha256: e2395539404cedd2e67f9bc9044b20f64e8de18693da7206eb70419cda1afaac

Contents?: true

Size: 761 Bytes

Versions: 7

Compression:

Stored size: 761 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
        @encodings: Array[String]

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

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

    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
httpx-1.1.3 sig/plugins/grpc/grpc_encoding.rbs
httpx-1.1.2 sig/plugins/grpc/grpc_encoding.rbs
httpx-1.1.1 sig/plugins/grpc/grpc_encoding.rbs
httpx-1.1.0 sig/plugins/grpc/grpc_encoding.rbs
httpx-1.0.2 sig/plugins/grpc/grpc_encoding.rbs
httpx-1.0.1 sig/plugins/grpc/grpc_encoding.rbs
httpx-1.0.0 sig/plugins/grpc/grpc_encoding.rbs