Accept-Query header

The HTTP Accept-Query response header indicates that a resource supports the QUERY method and identifies the query format media types that it accepts.

Accept-Query is a structured field whose value is a list of media ranges. The order of media ranges in the list is not significant. Its value applies to every URI on the server with the same path, regardless of the URI's query component.

Header type Response header

Syntax

http
Accept-Query: <media-range>
Accept-Query: <media-range>, <media-range>

Directives

<media-range>

A media type that the resource accepts as the content of a QUERY request. Media ranges are represented as structured field strings or tokens and can include structured field parameters. The */* value matches every media type, and <type>/* matches every subtype of the indicated type.

Examples

Advertising supported query formats

The following response indicates that the resource supports QUERY requests with application/x-www-form-urlencoded or application/sql content:

http
HTTP/1.1 200 OK
Content-Type: application/json
Accept-Query: application/x-www-form-urlencoded, application/sql

Specifications

Specification
Unknown specification
# section-3

See also