Page Contents

Home > @loopback/rest > writeResultToResponse

writeResultToResponse() function

Writes the result from Application controller method into the HTTP response

Signature:

export declare function writeResultToResponse(response: Response, result: OperationRetval): void;

Parameters

Parameter Type Description
response Response HTTP Response
result OperationRetval Result from the API to write into HTTP Response

Returns:

void