Questions related to the HTTP Accept header, which defines the content types the client advertises it will accept.
Questions tagged [http-accept-header]
79 questions
0
votes
1 answer
How to rewrite based on accept heads in nginx
I recently switched over to nginx and am fairly new at it, so forgive me if this has been covered extensivly before.
What im trying to do is rewrite the user request based on tthe accept header sent out.
In paticular:
if the accpet header is an…

user2360599
- 83
- 3
- 3
- 11
0
votes
1 answer
Media types for returning single item and collection of items
I'm developing an API for returning either a single product or a collection of products, so will have endpoints like http://api.company.com/products/ and http://api.company.com/products/1/ that return data in the following structures:
//…

Tom
- 1,561
- 4
- 20
- 29
-1
votes
1 answer
whats is "http-->header--> accept"
Request
Accept:audio/basic
Accept-Encoding:gzip, deflate
Accept-Language:tr-TR,tr;q=0.8,en-US;q=0.6,en;q=0.4
....
response
Cache-Control:private
Content-Encoding:gzip
Content-Length:133
Content-Type:text/html; charset=utf-8
..........
My accept…

UrenKanaatlı
- 1
- 1
-1
votes
1 answer
Media Type versioning in Accept header for ReST
I have added versioning for the media types (xml/json) supported in my ReST services. The Accept header of the incoming request should have a media type with valid version to get a proper response in the specified format. The problem is that if the…

Naveed S
- 5,106
- 4
- 34
- 52