UNPKG

444 BTypeScriptView Raw
1/**
2 * Request method Decorator. Sets a response header.
3 *
4 * For example:
5 * `@Header('Cache-Control', 'none')`
6 * `@Header('Cache-Control', () => 'none')`
7 *
8 * @param name string to be used for header name
9 * @param value string to be used for header value
10 *
11 * @see [Headers](https://docs.nestjs.com/controllers#headers)
12 *
13 * @publicApi
14 */
15export declare function Header(name: string, value: string | (() => string)): MethodDecorator;