UNPKG
negotiate
Version:
latest (1.0.1)
1.0.1
1.0.0
A JavaScript implementation of proper HTTP content negotiation.
github.com/garycourt/negotiate-js
negotiate
/
schemas
/
request.schema.json
15 lines
(14 loc)
•
287 B
JSON
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{
"type"
:
"object"
,
"properties"
:
{
"method"
:
{
"type"
:
"string"
,
"enum"
:
[
"GET"
,
"HEAD"
,
"POST"
,
"PUT"
,
"DELETE"
,
"TRACE"
,
"CONNECT"
,
"OPTIONS"
]
,
"optional"
:
true
}
,
"headers"
:
{
"type"
:
"object"
,
"additionalProperties"
:
{
"type"
:
"string"
}
}
}
}