Accept header support for Content negotiation #135
saini-prakhyat
started this conversation in
General
Replies: 1 comment 2 replies
-
By default, GoFr sets it based on the request content-type. Moreover, it gives option to change by returning the following type from handler. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently GoFr determines the Content Type of response based on the Content type of the request header as mentioned here. As per the HTTP guidelines this behaviour is determined by the Accept header. The question here is that if GoFr wants to carry on with the current behaviour or will it want to support content negotiation using Accept header.
Beta Was this translation helpful? Give feedback.
All reactions