Interface StreamRequest<I, O>

StreamRequest is used in interceptors to represent a request that has zero or more input messages, and zero or more output messages.

interface StreamRequest<I, O> {
    contextValues: ContextValues;
    header: Headers;
    init: RequestInit;
    message: AsyncIterable<I>;
    method: MethodInfo<I, O>;
    service: ServiceType;
    signal: AbortSignal;
    stream: true;
    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: AsyncIterable<I>

The input messages 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: true

The stream property discriminates between UnaryRequest and StreamingRequest.

url: string

The URL the request is going to hit.

Generated using TypeDoc