Page Contents

Home > @loopback/rest > getContentType

getContentType() function

Get the content-type header value from the request

Signature:

export declare function getContentType(req: Request): string | undefined;

Parameters

Parameter Type Description
req Request Http request

Returns:

string | undefined