UnaryResponse is used in interceptors to represent a response with a single output message.

interface UnaryResponse {
    header: Headers;
    message: O;
    method: MethodInfo<I, O>;
    service: ServiceType;
    stream: false;
    trailer: Headers;
}

Type Parameters

Hierarchy

Properties

header: Headers

Headers received from the response.

message: O

The received output message.

method: MethodInfo<I, O>

Metadata related to the service method that is being called.

service: ServiceType

Metadata related to the service that is being called.

stream: false

The stream property discriminates between UnaryResponse and StreamingConn.

trailer: Headers

Trailers received from the response. Note that trailers are only populated when the entirety of the response has been read.

Generated using TypeDoc