Sha256: 94b7c340993cd96d42a1c9979a685b3659a357a082e3f50e7345315d64c1bcde
Contents?: true
Size: 981 Bytes
Versions: 4
Compression:
Stored size: 981 Bytes
Contents
# frozen_string_literal: true require 'grpc_kit/calls' module GrpcKit module Calls::Server class RequestResponse < GrpcKit::Calls::Call attr_reader :deadline, :metadata attr_reader :outgoing_initial_metadata, :outgoing_trailing_metadata alias incoming_metadata metadata def initialize(*) super @outgoing_initial_metadata = {} @outgoing_trailing_metadata = {} end def send_msg(data, last: false) raise 'No method error' if @restrict @stream.send_msg( data, @protobuf, last: last, initial_metadata: @outgoing_initial_metadata, trailing_metadata: @outgoing_trailing_metadata, limit_size: @config.max_send_message_size, ) end def recv(last: false) raise 'No method error' if @restrict @stream.recv_msg(@protobuf, last: last, limit_size: @config.max_receive_message_size) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems