Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface HeaderParamDecorator

Type of the HeaderParam decorator

Hierarchy

  • HeaderParamDecorator

Callable

  • Injects a header parameter into controller handler

    example
    
    class ExampleController {
      @Get('/')
      index(@HeaderParam('if-none-match') etag: string) {
        // etag contains the given 'If-None-Match' header
      }
    }
    

    Parameters

    Returns any

Index

Constructors

Constructors

constructor

Generated using TypeDoc