Interface UnaryRequest<I, O>

UnaryRequest is used in interceptors to represent a request with a single input message.

interface UnaryRequest<I, O> {
    contextValues: ContextValues;
    header: Headers;
    init: RequestInit;
    message: I;
    method: MethodInfo<I, O>;
    service: ServiceType;
    signal: AbortSignal;
    stream: false;
    url: string;
}

Type Parameters

Hierarchy (view full)

Properties

contextValues: ContextValues

The context values for the current call.

header: Headers

Headers that will be sent along with the request.

init: RequestInit

Optional parameters to the fetch API.

message: I

The input message that will be transmitted.

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.

signal: AbortSignal

The AbortSignal for the current call.

stream: false

The stream property discriminates between UnaryRequest and StreamingRequest.

url: string

The URL the request is going to hit.

Generated using TypeDoc