Headers Tab
The Headers tab configures HTTP headers sent with your request. Headers provide metadata about the request, including content type, authentication tokens, caching preferences, and custom application-specific data.
What Are HTTP Headers?
HTTP headers are key-value pairs sent at the beginning of a request (and response). They communicate information that is separate from the request body.
Raw HTTP Request Example
POST /api/users HTTP/1.1 Host: api.example.com Content-Type: application/json Authorization: Bearer token123 Accept: application/json{"name": "John"}The lines between the request line and the body are headers.
Header Categories
The Headers tab organizes headers into two sections:
Auto-generated Headers
Headers that Tigrister manages automatically based on your request configuration:
- Content-Type — Set based on the selected body type. You cannot manually edit this; change the body type to change Content-Type.
- Default Headers — Pre-configured headers like Accept and User-Agent. These can be enabled/disabled and their values can be edited.
Custom Headers
Headers you add manually. You have full control over the key, value, and enabled state. This is where you add application-specific headers, API keys, or any custom requirements.
Content-Type Header
The Content-Type header tells the server the format of your request body. It is set automatically based on your body type selection.
| Body Type | Content-Type Header |
|---|---|
| none | Not sent |
| JSON | application/json |
| XML | application/xml |
| Text | text/plain |
| form-data | multipart/form-data; boundary=... |
| x-www-form-urlencoded | application/x-www-form-urlencoded |
| Binary | Auto-detected from file (e.g., image/png) |
Default Headers
Tigrister includes default headers that are commonly needed for API requests. You can enable/disable them and edit their values.
| Header | Default Value | Purpose |
|---|---|---|
| Accept | */* | Tells the server what response formats you accept |
| User-Agent | Tigrister/1.0 | Identifies the client making the request |
| Accept-Encoding | gzip, deflate, br | Specifies supported compression methods |
| Connection | keep-alive | Keeps the connection open for multiple requests |
Editing Default Headers
- Checkbox: Uncheck to disable a default header without deleting it
- Value: Click the value field to edit (e.g., change Accept to "application/json")
- Key: Cannot be changed for default headers (shown as dimmed)
Custom Headers
Add your own headers for authentication, API versioning, tracing, or any application-specific requirements.
| Column | Description |
|---|---|
| Checkbox | Enable or disable the header |
| Key | Header name (e.g., "X-API-Key"). Supports autocomplete. |
| Value | Header value. Can include environment variables. |
| Delete (X) | Remove the header |
Header Autocomplete
When typing in the Key field, Tigrister shows suggestions for common HTTP headers organized by category.
Categories
- Authentication — Authorization, WWW-Authenticate
- Caching — Cache-Control, If-None-Match, ETag
- Content — Content-Type, Content-Length, Content-Encoding
- CORS — Origin, Access-Control-Request-Method
- Request — Accept, Accept-Language, Accept-Encoding
- Custom — X-Request-ID, X-Correlation-ID, X-API-Key
Using Autocomplete
- Click in the Key field
- Start typing or leave empty to see all suggestions
- Click a suggestion to select it
- The key and a default value are filled in automatically
Common Headers
Authentication
Most common authentication header. The Auth tab sets this automatically based on your auth configuration.
API Versioning
Different APIs use different versioning schemes in headers.
Request Tracing
Used for tracking requests through distributed systems.
Caching
Control caching behavior and conditional requests.
Using Variables in Headers
Header values can include environment variables and random variables.
Example
| Key | Value |
|---|---|
| Authorization | Bearer {{authToken}} |
| X-Tenant-ID | {{tenantId}} |
| X-Request-ID | {{random.uuid}} |
| X-Timestamp | {{random.timestamp}} |
Header Precedence
If the same header is defined in multiple places, custom headers take precedence over auto-generated ones.
Priority Order (highest to lowest)
- Custom headers you add manually
- Authentication headers (from Auth tab)
- Default headers
- Content-Type (from Body type)