AI engineering glossary · Web APIs HTTP
What is accept header?
Accept header: A request header in which the client lists the response formats it can handle, optionally ranked by preference. The server may use it to choose between formats such as JSON and XML.
Accept header: an example
Accept: application/json asks the server to reply with JSON rather than HTML.
Related terms
More Web APIs HTTP terms
Where you learn it
Accept header is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.