Taxum / @taxum/core / service / ServiceFn
Class: ServiceFn<Request, Response>
Defined in: service/service-fn.ts:26
A Service implemented by a closure.
See
Type Parameters
Request
Request
Response
Response
Implements
Service
<Request
,Response
>
Constructors
Constructor
new ServiceFn<
Request
,Response
>(f
):ServiceFn
<Request
,Response
>
Defined in: service/service-fn.ts:29
Parameters
f
ServiceFnClosure
<Request
, Response
>
Returns
ServiceFn
<Request
, Response
>
Methods
invoke()
invoke(
req
):Promise
<Response
>
Defined in: service/service-fn.ts:33
Process the request and return the response asynchronously.
Parameters
req
Request
Returns
Promise
<Response
>