Public Class methods
new(*, **)
[show source]
# File lib/httpx/plugins/grpc.rb 113 def initialize(*, **) 114 super 115 116 if (compression = @headers["grpc-encoding"]) 117 deflater_body = self.class.initialize_deflater_body(@body, compression) 118 @body = Transcoder::GRPCEncoding.encode(deflater_body || @body, compressed: !deflater_body.nil?) 119 else 120 @body = Transcoder::GRPCEncoding.encode(@body, compressed: false) 121 end 122 end