Headers
Route handler parameter decorator. Extracts the headers
property from the req
object and populates the decorated
parameter with the value of headers
.
const Headers: (property?: string) => ParameterDecorator;
See also
Description
For example: async update(@Headers('Cache-Control') cacheControl: string)