Page Contents

Home > @loopback/rest > RequestBodyParser > loadRequestBodyIfNeeded

RequestBodyParser.loadRequestBodyIfNeeded() method

Signature:

loadRequestBodyIfNeeded(operationSpec: OperationObject, request: Request): Promise<RequestBody>;

Parameters

Parameter Type Description
operationSpec OperationObject  
request Request  

Returns:

Promise<RequestBody>