Interface HTTPHeaderDb

HTTP Header Database.

Example

{
"accept": {...},
"content-type": {
"name": "Content-Type",
"type": [
"representation"
],
"description": "The Content-Type representation header is used to indicate the original media type of the resource (prior to any content encoding applied for sending). In responses, a Content-Type header provides the client with the actual content type of the returned content. This header's value may be ignored, for example when browsers perform MIME sniffing; set the X-Content-Type-Options header value to nosniff to prevent this behavior. In requests, (such as POST or PUT), the client tells the server what type of data is actually sent.",
"syntax": "Content-Type: text/html; charset=UTF-8\nContent-Type: multipart/form-data; boundary=something",
"link": "https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Type",
"forbiddenHeaderName": false,
"corsSafeListedRequestHeader": false,
"corsSafeListedResponseHeader": true,
"examples": [],
"directives": [
{
"name": "media-type",
"description": "The MIME type of the resource or the data."
},
{
"name": "charset",
"description": "The character encoding standard."
},
{
"name": "boundary",
"description": "For multipart entities the boundary directive is required. The directive consists of 1 to 70 characters from a set of characters (and not ending with white space) known to be very robust through email gateways. It is used to encapsulate the boundaries of the multiple parts of the message. Often, the header boundary is prepended with two dashes and the final boundary has two dashes appended at the end."
}
],
"specifications": [
{
"name": "HTTP Semantics # status.206",
"link": "https://httpwg.org/specs/rfc9110.html#status.206"
},
{
"name": "HTTP Semantics # field.content-type",
"link": "https://httpwg.org/specs/rfc9110.html#field.content-type"
}
],
"browserCompatibility": [
{
"feature": "Content-Type",
"browsers": [
{
"name": "Chrome",
"supported": true,
"version": "Yes"
},
{
"name": "Edge",
"supported": true,
"version": "12"
},
{
"name": "Firefox",
"supported": true,
"version": "Yes"
},
{
"name": "Opera",
"supported": true,
"version": "Yes"
},
{
"name": "Safari",
"supported": true,
"version": "Yes"
},
{
"name": "Chrome Android",
"supported": true,
"version": "Yes"
},
{
"name": "Firefox for Android",
"supported": true,
"version": "Yes"
},
{
"name": "Opera Android",
"supported": true,
"version": "Yes"
},
{
"name": "Safari on iOS",
"supported": true,
"version": "Yes"
},
{
"name": "Samsung Internet",
"supported": true,
"version": "Yes"
},
{
"name": "WebView Android",
"supported": true,
"version": "Yes"
}
]
}
]
},
"content-length": {...},
...
}

Hierarchy

  • HTTPHeaderDb

Indexable

[key: string]: HTTPHeader

Generated using TypeDoc