With REST API, which standard HTTP header tells a server which media type is expected by the client?

IT Questions BankCategory: CCNAWith REST API, which standard HTTP header tells a server which media type is expected by the client?

With REST API, which standard HTTP header tells a server which media type is expected by the client?

  • A. Accept-Encoding: gzip. deflate
  • B. Accept-Patch: text/example; charset=utf-8
  • C. Content-Type: application/json; charset=utf-8
  • D. Accept: application/json

Answer: D
Explanation: Accept header is a way for a client to specify the media type of the response content it is expecting and Content-type is a way to specify the media type of request being sent from the client to the server.

Exam with this question: CA201

Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments