Skip to content

Taxum / @taxum/core / util / MapToHttpResponse

Class: MapToHttpResponse

Defined in: util/map-to-http-response.ts:18

A service that wraps another service and maps any HttpResponseLike responses into HttpResponses.

Implements

Constructors

Constructor

new MapToHttpResponse(inner): MapToHttpResponse

Defined in: util/map-to-http-response.ts:21

Parameters

inner

HttpService<HttpResponseLike>

Returns

MapToHttpResponse

Methods

invoke()

invoke(request): Promise<HttpResponse>

Defined in: util/map-to-http-response.ts:25

Process the request and return the response asynchronously.

Parameters

request

HttpRequest

Returns

Promise<HttpResponse>

Implementation of

Service.invoke