Request Headers allow you to pass additional information with requests, helping to control how the server responds.
key-value
pairs, and you can also add a description
for each header to keep track of its purpose.
Here are a few common headers you might set:
Header | Description |
---|---|
Authorization | Used for passing credentials, such as tokens, to authenticate the client with the server. |
Content-Type | Indicates the format of the data being sent, like application/json . |
Accept | Tells the server what media types the client can handle in the response. |
Cache-Control | Controls caching behavior in both requests and responses. |
User-Agent | Provides information about the client making the request. |