UNPKG
@tinyhttp/vary
Version:
latest (0.1.3)
0.1.3
vary rewrite in TypeScript and ESM
github.com/tinyhttp/vary
tinyhttp/vary
@tinyhttp/vary
/
dist
/
index.d.ts
10 lines
(7 loc)
•
282 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
import
{
ServerResponse
}
from
'node:http'
;
declare
function
append
(
header
:
string
,
field
:
string
|
string
[]
):
string
;
/** * Mark that a request is varied on a header field. */
declare
function
vary
(
res
:
ServerResponse
,
field
:
string
|
string
[]
):
void
;
export
{ append, vary };