Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface HeadersDecorator

Type of the Headers decorator

Hierarchy

  • HeadersDecorator

Callable

  • Injects all header parameters as object into controller handler

    example
    
    class ExampleController {
      @Get('/')
      index(@Headers() headers: IncomingHttpHeaders) {
        // headers contains all request headers
      }
    }
    

    Parameters

    Returns any

Index

Constructors

Constructors

constructor

Generated using TypeDoc