Type of the HeaderParam decorator
Injects a header parameter into controller handler
class ExampleController { @Get('/') index(@HeaderParam('if-none-match') etag: string) { // etag contains the given 'If-None-Match' header } }
Generated using TypeDoc
Type of the HeaderParam decorator