// http header · request header

Accept

Media types the client can understand

What the Accept header does

The Accept header tells the server which media types the client can handle, so the server can pick a matching representation (content negotiation). Accept: application/json asks for JSON; a browser typically sends a list including text/html. Quality values (;q=0.9) express preference.

Example

Accept: application/json

Where it's used

Accept is a request header. Request headers are sent by the client to describe the request and what the client can accept.

Other request headers