1 | // Type definitions for vary 1.1
|
2 | // Project: https://github.com/jshttp/vary#readme
|
3 | // Definitions by: BendingBender <https://github.com/BendingBender>
|
4 | // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
5 |
|
6 | /// <reference types="node" />
|
7 | import { ServerResponse } from 'http';
|
8 | export = vary;
|
9 |
|
10 | declare function vary(res: ServerResponse, field: string | string[]): void;
|
11 |
|
12 | declare namespace vary {
|
13 | function append(header: string, field: string | string[]): string;
|
14 | }
|