Module header
Expand description
Reexported Hyper HTTP header types.
Constants§
- ACCEPT
- Advertises which content types the client is able to understand.
- ACCEPT_
CHARSET - Advertises which character set the client is able to understand.
- ACCEPT_
ENCODING - Advertises which content encoding the client is able to understand.
- ACCEPT_
LANGUAGE - Advertises which languages the client is able to understand.
- ACCEPT_
RANGES - Marker used by the server to advertise partial request support.
- ACCESS_
CONTROL_ ALLOW_ CREDENTIALS - Preflight response indicating if the response to the request can be exposed to the page.
- ACCESS_
CONTROL_ ALLOW_ HEADERS - Preflight response indicating permitted HTTP headers.
- ACCESS_
CONTROL_ ALLOW_ METHODS - Preflight header response indicating permitted access methods.
- ACCESS_
CONTROL_ ALLOW_ ORIGIN - Indicates whether the response can be shared with resources with the given origin.
- ACCESS_
CONTROL_ EXPOSE_ HEADERS - Indicates which headers can be exposed as part of the response by listing their names.
- ACCESS_
CONTROL_ MAX_ AGE - Indicates how long the results of a preflight request can be cached.
- ACCESS_
CONTROL_ REQUEST_ HEADERS - Informs the server which HTTP headers will be used when an actual request is made.
- ACCESS_
CONTROL_ REQUEST_ METHOD - Informs the server know which HTTP method will be used when the actual request is made.
- ALLOW
- Lists the set of methods support by a resource.
- AUTHORIZATION
- Contains the credentials to authenticate a user agent with a server.
- CACHE_
CONTROL - Specifies directives for caching mechanisms in both requests and responses.
- CONNECTION
- Controls whether or not the network connection stays open after the current transaction finishes.
- CONTENT_
DISPOSITION - Indicates if the content is expected to be displayed inline.
- CONTENT_
ENCODING - Used to compress the media-type.
- CONTENT_
LANGUAGE - Used to describe the languages intended for the audience.
- CONTENT_
LENGTH - Indicates the size of the entity-body.
- CONTENT_
LOCATION - Indicates an alternate location for the returned data.
- CONTENT_
RANGE - Indicates where in a full body message a partial message belongs.
- CONTENT_
SECURITY_ POLICY - Allows controlling resources the user agent is allowed to load for a given page.
- CONTENT_
SECURITY_ POLICY_ REPORT_ ONLY - Allows experimenting with policies by monitoring their effects.
- CONTENT_
TYPE - Used to indicate the media type of the resource.
- DATE
- Contains the date and time at which the message was originated.
- ETAG
- Identifier for a specific version of a resource.
- EXPECT
- Indicates expectations that need to be fulfilled by the server in order to properly handle the request.
- EXPIRES
- Contains the date/time after which the response is considered stale.
- FORWARDED
- Contains information from the client-facing side of proxy servers that is altered or lost when a proxy is involved in the path of the request.
- FROM
- Contains an Internet email address for a human user who controls the requesting user agent.
- HOST
- Specifies the domain name of the server and (optionally) the TCP port number on which the server is listening.
- IF_
MATCH - Makes a request conditional based on the E-Tag.
- IF_
MODIFIED_ SINCE - Makes a request conditional based on the modification date.
- IF_
NONE_ MATCH - Makes a request conditional based on the E-Tag.
- IF_
RANGE - Makes a request conditional based on range.
- IF_
UNMODIFIED_ SINCE - Makes the request conditional based on the last modification date.
- LAST_
MODIFIED - Content-Types that are acceptable for the response.
- LINK
- Allows the server to point an interested client to another resource containing metadata about the requested resource.
- LOCATION
- Indicates the URL to redirect a page to.
- ORIGIN
- Indicates where a fetch originates from.
- PRAGMA
- HTTP/1.0 header usually used for backwards compatibility.
- RANGE
- Indicates the part of a document that the server should return.
- REFERER
- Contains the address of the previous web page from which a link to the currently requested page was followed.
- REFERRER_
POLICY - Governs which referrer information should be included with requests made.
- REFRESH
- Informs the web browser that the current page or frame should be refreshed.
- STRICT_
TRANSPORT_ SECURITY - Tells the client to communicate with HTTPS instead of using HTTP.
- TE
- Informs the server of transfer encodings willing to be accepted as part of the response.
- TRANSFER_
ENCODING - Specifies the form of encoding used to safely transfer the entity to the client.
- UPGRADE
- Used as part of the exchange to upgrade the protocol.
- USER_
AGENT - Contains a string that allows identifying the requesting client’s software.
- VARY
- Determines how to match future requests with cached responses.