UNPKG

@nestjs/common

Version:

Decorators, pipes, exceptions and utilities for NestJS applications: @Controller(), @Injectable(), @Body(), ValidationPipe, HttpException and more.

16 lines (15 loc) • 444 B
/** * Request method Decorator. Sets a response header. * * For example: * `@Header('Cache-Control', 'none')` * `@Header('Cache-Control', () => 'none')` * * @param name string to be used for header name * @param value string to be used for header value * * @see [Headers](https://docs.nestjs.com/controllers#headers) * * @publicApi */ export declare function Header(name: string, value: string | (() => string)): MethodDecorator;