Skip to content 

RuntimeRequestHandlerBuilder Class

Packages > @fluidframework/request-handler > RuntimeRequestHandlerBuilder

The RuntimeRequestHandlerBuilder creates a runtime request handler based on request handlers. The provided handlers sequentially applied until one is able to satisfy the request.

Signature:

export declare class RuntimeRequestHandlerBuilder 

Methods

List of methods on this class
Method Modifiers Description
handleRequest(request, runtime)
pushHandler(handlers)

Methods

handleRequest

Signature:

handleRequest(request: IRequest, runtime: IContainerRuntime): Promise<IResponse>;

Parameters

List of parameters
Parameter Type Description
request IRequest
runtime IContainerRuntime

Returns:

Promise<IResponse>

pushHandler

Signature:

pushHandler(...handlers: RuntimeRequestHandler[]): void;

Parameters

List of parameters
Parameter Type Description
handlers RuntimeRequestHandler[]

Returns:

void