Skip to content

v0.2.0 - HTTP Execution and File Downloads

Choose a tag to compare

@adammpkins adammpkins released this 04 Nov 06:04
· 8 commits to main since this release

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-run

Breaking 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