Repository navigation
v0.2.0 - HTTP Execution and File Downloads
This release adds actual HTTP execution functionality, making req a fully functional HTTP client.
What's New
- ✅ HTTP Request Execution: Actually executes HTTP requests (GET, POST, etc.)
- ✅ File Downloads: Download files with the verb
- ✅ Automatic Filename Extraction: Extracts filename from URL when is not provided
- ✅ Directory Path Support: Handles directory paths in clause (e.g., )
- ✅ Query Parameters: Support for query parameters via clause
- ✅ Headers: Support for custom headers via clause
- ✅ Dry-Run Mode: Use flag to see execution plan without executing
Examples
# Download file with auto-detected filename
req save https://example.com/file.zip
# Download file with explicit filename
req save https://example.com/file.zip to=file.zip
# Download to directory path
req save https://example.com/file.zip to=/tmp/file.zip
# Read JSON from API
req read https://api.example.com/users as=json
# View execution plan without executing
req read https://api.example.com/users as=json --dry-runBreaking Changes
- Commands now execute by default (use to see plans without executing)
- v0.1.0 was preview/dry-run only; v0.2.0 is the first functional release
Next Steps
- v0.3.0: Send with JSON and form data, upload with multipart