Skip to content

Latest commit

 

History

History
137 lines (90 loc) · 2.04 KB

http.header.md

File metadata and controls

137 lines (90 loc) · 2.04 KB

Request

Accept

Content-Types that are acceptable.

Accept: application/json; q=.5, text/html

Accept-Charset

Character sets that are acceptable.

Accept-Charset: utf-8

Accept-Encoding

Acceptable encodings.

Accept-Encoding: gzip

Accept-Language

Acceptable languages for response.

Accept-Language: en-US

Authorization

Authentication credentials for HTTP authentication.

Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==

Cache-Control

Used to specify directives that MUST be obeyed by all caching mechanisms along the request/response chain.

Cache-Control: no-cache

Connection

What type of connection the user-agent would prefer.

Connection: close

Cookie

Cookies previously set by Set-Cookie.

Cookie: foo=bar; bar=baz

Content-Length

Length of the body in octets.

Content-Length: 1024

Content-MD5

A base64-encoded binary MD5 sum of the request body content.

Content-MD5: Q2hlY2sgSW50ZWdyaXR5IQ==

Content-Type

The mime type of the request body.

Content-Type: application/json

Date

The date and time the message was sent.

Date: Tue, 15 Nov 1994 08:12:31 GMT

Host

The domain name of the server mandatory since HTTP/1.1.

Host: en.wikipedia.org

If-Match

If-Modified-Since

If-None-Match

If-Range

If-Unmodified-Since

Range

Referer

Upgrade

User-Agent

Via

Warning

X-Requested-With

X-Forwarded-For

TODO

Response

Accept-Ranges

What partial content range types this server supports:

Accept-Ranges: bytes

Age

Allow

Cache-Control

Connection

Content-Encoding

Content-Language

Content-Length

Content-Locatoin

Content-MD5

Content-Disposition

Content-Range

Content-Type

Date

ETag

Expires

Last-Modified

Link

Location

Proxy-Authenticate

Refresh

Retry-After

Server

Set-Cookie

Trailer

Transfer-Encoding

Vary

Warning

WWW-Authenticate

X-Frame-Options

X-Forwarded-Proto

X-Powered-By