Get HTTP Request Body Block
Retrieves and parses the HTTP request body data.
🎯 Purpose
This block extracts the body content from HTTP requests, supporting various content types and automatic parsing.
⚙️ Configuration
This block requires no configuration parameters.
📝 Example Usage
🔄 Execution Flow
- Body Access: Retrieves raw request body
- Content-Type Detection: Identifies content type
- Automatic Parsing: Parses based on content type
- Data Output: Returns parsed data
🎨 Use Cases
JSON API Requests
// Input: POST /api/users
// Content-Type: application/json
// Body: {"name": "John", "email": "john@example.com"}
//
// Output: { name: "John", email: "john@example.com" }
Form Data
// Input: POST /api/upload
// Content-Type: application/x-www-form-urlencoded
// Body: name=John&email=john@example.com
//
// Output: { name: "John", email: "john@example.com" }
Raw Text
// Input: POST /api/webhook
// Content-Type: text/plain
// Body: "Hello World"
//
// Output: "Hello World"
📚 API Reference
// Input
{} // No parameters required
// Output
{
successful: boolean,
output: any, // Parsed request body
next?: string,
continueIfFail: boolean
}
🔗 Related Blocks
- Set Variable: Store request body data
- Transformer: Transform body data
- JavaScript Runner: Process body data
- If: Validate body content