We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
header
Content-Type
Content-Length
headers.content-type
headers.content-length
1 parent ebea33d commit 0b9cc37Copy full SHA for 0b9cc37
scripts/lib/get-routes.js
@@ -54,7 +54,14 @@ function getRoutes () {
54
indexes.forEach(i => endpoint.params.splice(i, 1))
55
endpoint.params.unshift(
56
Object.assign(contentLengthParam, { name: 'headers.content-length' }),
57
- Object.assign(contentTypeParam, { name: 'headers.content-type' })
+ Object.assign(contentTypeParam, { name: 'headers.content-type' }),
58
+ {
59
+ name: 'headers',
60
+ location: 'headers',
61
+ required: true,
62
+ type: 'object',
63
+ description: 'Request headers containing `content-type` and `content-length`'
64
+ }
65
)
66
}
67
0 commit comments