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

ServiceCall()

Properties

clientCertificate X509Certificate?
Returns the client certificate if it is requested and available
no setter
clientMetadata Map<String, String>?
Custom metadata from the client.
no setter
deadline DateTime?
Deadline for this call. If the call is still active after this time, then the client or server may cancel it.
no setter
hashCode int
The hash code for this object.
no setterinherited
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.
no setter
isCanceled bool
Returns true if the client has canceled this call.
no setter
isTimedOut bool
Returns true if the deadline has been exceeded.
no setter
remoteAddress InternetAddress?
Returns the IP address of the client, if available
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
trailers Map<String, String>?
Custom metadata to be sent to the client after all response messages.
no setter

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