Skip to content

Taxum / @taxum/core / routing / HandlerService

Class: HandlerService

Defined in: routing/handler.ts:132

A service that wraps a handler function.

Implements

Constructors

Constructor

new HandlerService(handler): HandlerService

Defined in: routing/handler.ts:135

Parameters

handler

Handler

Returns

HandlerService

Methods

invoke()

invoke(req): Promise<HttpResponseLike>

Defined in: routing/handler.ts:139

Process the request and return the response asynchronously.

Parameters

req

HttpRequest

Returns

Promise<HttpResponseLike>

Implementation of

Service.invoke