CallContext class

Per-call context: metadata sent in HEADERS.

Constructors

CallContext(Map<String, String> metadata)

Properties

deadline → DateTime?
Deadline propagated via grpc-timeout, when the client set one.
final
deadlineExceeded → bool
no setter
hashCode → int
The hash code for this object.
no setterinherited
metadata → Map<String, String>
final
responseHeaders → Map<String, String>
Response initial metadata recorded via setHeaders.
final
responseTrailers → Map<String, String>
Response trailing metadata recorded via setTrailers.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
traceContext ↔ TraceContext?
This call's server span context (null when dormant).
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setHeaders(Map<String, String> md) → void
Record response initial metadata (sent lazily, before the first response message).
setTrailers(Map<String, String> md) → void
Record response trailing metadata (rides the terminal status frame).
timeRemaining() → Duration?
Time left before the deadline, or null when unbounded.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited