Set HTTP Header Block
The Set HTTP Header block sets header values in HTTP responses. It allows you to control response headers sent back to clients.
🎯 Purpose
This block enables you to set HTTP response headers for:
- Content type specification
- CORS configuration
- Authentication challenges
- Custom application headers
- Response metadata
⚙️ Configuration
Parameter | Type | Required | Description |
---|---|---|---|
name |
string |
✅ | Header name to set |
value |
string |
✅ | Header value to set |
📝 Example Usage
🔄 Execution Flow
- Parameter Validation: Validates header name and value
- Header Setting: Sets header in response
- Flow Continuation: Passes input data unchanged
🎨 Use Cases
Content Type Setting
CORS Headers
Authentication
📚 API Reference
// Input
{
name: string,
value: string
}
// Output
{
successful: boolean,
output: any,
next?: string,
continueIfFail: boolean
}
🔗 Related Blocks
- Get HTTP Header: Read request headers
- Set HTTP Cookie: Set response cookies