Request Headers are key-value pairs that the client sends to the server with an HTTP request. These headers carry extra details about your request, helping the server understand its context and tailor the response to fit.

Headers Tab

In Hoppscotch, you can easily set and manage request headers using the Headers tab. This tab allows you to define 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:

HeaderDescription
AuthorizationUsed for passing credentials, such as tokens, to authenticate the client with the server.
Content-TypeIndicates the format of the data being sent, like application/json.
AcceptTells the server what media types the client can handle in the response.
Cache-ControlControls caching behavior in both requests and responses.
User-AgentProvides information about the client making the request.
For Authorization and Content-Type headers, the description field will be disabled, and the value will be empty. In contrast, for inherited headers, the specified values will be automatically populated in the description field.

Hoppscotch offers a variety of header options beyond these five examples, allowing you to customize how the server processes your requests to meet specific requirements.

Bulk edit request headers

Using the

Bulk edit feature in Hoppscotch’s request headers tab, you can input and manage multiple headers simultaneously, with each header on a new line and the key and value separated by a colon (:). For example,

Authorization: Bearer token123
Content-Type: application/json
# User-Agent: CustomAgent/1.0