Packages > @fluidframework/request-handler

@fluidframework/request-handler Package

Types

TypeAlias Alerts Description
RuntimeRequestHandler ALPHA, DEPRECATED A request handler for the container runtime. Each handler should handle a specific request, and return undefined if it does not apply. These handlers are called in series, so there may be other handlers before or after. A handler should only return error if the request is for a route the handler owns, and there is a problem with the route, or fulling the specific request.

Type Details

RuntimeRequestHandler (ALPHA)

A request handler for the container runtime. Each handler should handle a specific request, and return undefined if it does not apply. These handlers are called in series, so there may be other handlers before or after. A handler should only return error if the request is for a route the handler owns, and there is a problem with the route, or fulling the specific request.

API This

Will be removed in future major release. Migrate all usage of IFluidRouter to the “entryPoint” pattern. Refer to Removing-IFluidRouter.md

WARNING: This API is provided as an alpha preview and may change without notice. Use at your own risk.

Signature

export type RuntimeRequestHandler = (request: RequestParser, runtime: IContainerRuntime) => Promise<IResponse | undefined>;