ExecutionContext
Interface describing details about the current request pipeline.
interface ExecutionContext extends ArgumentsHost {
getClass<T = any>(): Type<T>
getHandler(): Function
// inherited from nest/packages/common/ArgumentsHost
getArgs<T extends Array<any> = any[]>(): T
getArgByIndex<T = any>(index: number): T
switchToRpc(): RpcArgumentsHost
switchToHttp(): HttpArgumentsHost
switchToWs(): WsArgumentsHost
getType<TContext extends string = ContextType>(): TContext
}
See also
Methods
getClass() |
---|
Returns the type of the controller class which the current handler belongs to. |
getHandler() |
---|
Returns a reference to the handler (method) that will be invoked next in the request pipeline. |
ParametersThere are no parameters. Returns
|