ServiceCall class abstract
Server-side context for a gRPC call.
Gives the method handler access to custom metadata from the client, and ability to set custom metadata on the header/trailer sent to the client.
Constructors
Properties
- clientCertificate → X509Certificate?
-
Returns the client certificate if it is requested and available
read-only
-
clientMetadata
→ Map<
String, String>? -
Custom metadata from the client.
read-only
- deadline → DateTime?
-
Deadline for this call. If the call is still active after this time, then
the client or server may cancel it.
read-only
- hashCode → int
-
The hash code for this object.
read-onlyinherited
-
headers
→ Map<
String, String>? -
Custom metadata to be sent to the client. Will be
null
once the headers have been sent, either when sendHeaders is called, or when the first response message is sent.read-only - isCanceled → bool
-
Returns
true
if the client has canceled this call.read-only - isTimedOut → bool
-
Returns
true
if the deadline has been exceeded.read-only - remoteAddress → InternetAddress?
-
Returns the IP address of the client, if available
read-only
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
-
trailers
→ Map<
String, String>? -
Custom metadata to be sent to the client after all response messages.
read-only
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sendHeaders(
) → void - Send response headers. This is done automatically before sending the first response message, but can be done manually before the first response is ready, if necessary.
-
sendTrailers(
{int? status, String? message}) → void -
Send response trailers. A trailer indicating success (
status
== 0) will be sent automatically when all responses are sent. This method can be used to send a different status code, if needed. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited