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
Method | Modifiers | Description |
---|---|---|
handleRequest(request, runtime) | ||
pushHandler(handlers) |
Methods
handleRequest
Signature:
handleRequest(request: IRequest, runtime: IContainerRuntime): Promise<IResponse>;
Parameters
Parameter | Type | Description |
---|---|---|
request | IRequest | |
runtime | IContainerRuntime |
Returns:
Promise<IResponse>
pushHandler
Signature:
pushHandler(...handlers: RuntimeRequestHandler[]): void;
Parameters
Parameter | Type | Description |
---|---|---|
handlers | RuntimeRequestHandler[] |
Returns:
void