class
GRPC::Transport::GrpcDeframer
- GRPC::Transport::GrpcDeframer
- Reference
- Object
Overview
GrpcDeframer incrementally accumulates DATA chunks and extracts complete gRPC messages while preserving any trailing partial frame bytes.
Defined in:
grpc/transport/grpc_deframer.crConstructors
Instance Method Summary
- #append(chunk : Bytes) : Nil
-
#drain_frames : Array(Tuple(Bytes, Int32))
Preserve the wire size for HTTP/2 credit, including compressed frames.
- #drain_messages : Array(Bytes)
-
#each_frame(& : Bytes, Int32 -> ) : Nil
Yield one decoded frame at a time so consumers can enforce their own backlog budget before a whole coalesced batch is decompressed.
- #encoding : String | Nil
- #encoding=(encoding : String | Nil)
- #remainder_size : Int32
Constructor Detail
def self.new(encoding : String | Nil = nil, validate_encoding : Bool = false, limits : ReceiveLimits = ReceiveLimits.new)
#
Instance Method Detail
def drain_frames : Array(Tuple(Bytes, Int32))
#
Preserve the wire size for HTTP/2 credit, including compressed frames.
def each_frame(& : Bytes, Int32 -> ) : Nil
#
Yield one decoded frame at a time so consumers can enforce their own backlog budget before a whole coalesced batch is decompressed.