2 ms·
...what? Your comment literally makes no sense to me. > Yes, you could use a custom header, many do, but then you're stepping outside of the HTTP standard No
by eridius 9y ago
...what? Your comment literally makes no sense to me.
> Yes, you could use a custom header, many do, but then you're stepping outside of the HTTP standard
No you're not. The HTTP standard allows for custom headers, and nothing in the HTTP standard restricts servers from using customer headers to influence how they process the request.
> Accept header is supposed to define the response format
Yes, like application/json. It's not supposed to define the request content, just the format, and it's definitely not supposed to affect the way the request is processed.
> version is another facet of the response format
No it's not. JSON is a response format. XML is a response format. "API version 5" is not a response format.