What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-01 00:09:03
accept header json
`Accept Header` can be used to ask the server to return different type of response format For example : `/api/xname` endpoint , support both xml and json as response type so we can add accept header `application/xml` to get xml result and `applicati... Add solution -
Other 2021-08-29 23:29:02
accept and content type
Content-Type header is used in POST , PUT , PATCH to specify the type of body you are sending to the serve and it's required. `Accept Header` can be used to ask the server to return different type of response format For example : `/api/xname` endpo... Add solution