Skip to main content

apiOkResponse

apiOkResponse<TBody>(resData, headers?): Response

Sends a response with HTTP status code 200 (OK) and the provided data.

Type Parameters

TBody

TBody

Parameters

resData

TBody

The response data to be sent to the client.

headers?

HeadersInit

Optional headers to include in the response.

Returns

Response