Add HTTPie for API testing with comprehensive usage guide
- Add httpie package to home.packages for modern HTTP client capabilities - Include comprehensive usage examples in README covering: * Basic HTTP methods (GET, POST, PUT, DELETE) * Authentication with Bearer tokens and API keys * File uploads (form and multipart) * JSON data handling with type coercion * Session management for persistent authentication * File downloads and response filtering HTTPie provides a user-friendly alternative to curl for API testing and development workflows. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
f2c81c7a8d
commit
bdbf7a090c
2 changed files with 32 additions and 0 deletions
31
README.md
31
README.md
|
|
@ -174,6 +174,7 @@ Launch with `gitui` in any git repository for:
|
||||||
- **ripgrep (rg)**: Fast text search
|
- **ripgrep (rg)**: Fast text search
|
||||||
- **bat**: Syntax-highlighted cat replacement
|
- **bat**: Syntax-highlighted cat replacement
|
||||||
- **btop**: Modern system monitor
|
- **btop**: Modern system monitor
|
||||||
|
- **httpie**: Modern HTTP client for API testing
|
||||||
- **zoxide**: Smart cd with frecency algorithm
|
- **zoxide**: Smart cd with frecency algorithm
|
||||||
|
|
||||||
#### fd Usage Examples
|
#### fd Usage Examples
|
||||||
|
|
@ -205,6 +206,36 @@ fzf --preview 'bat --style=numbers --color=always {}'
|
||||||
- `Ctrl+R` - Search command history interactively
|
- `Ctrl+R` - Search command history interactively
|
||||||
- `Alt+C` - Change to selected directory
|
- `Alt+C` - Change to selected directory
|
||||||
|
|
||||||
|
#### httpie Usage Examples
|
||||||
|
```bash
|
||||||
|
# Simple HTTP requests
|
||||||
|
http GET api.example.com/users
|
||||||
|
http POST api.example.com/users name="John" email="john@example.com"
|
||||||
|
http PUT api.example.com/users/1 name="Jane"
|
||||||
|
http DELETE api.example.com/users/1
|
||||||
|
|
||||||
|
# With authentication headers
|
||||||
|
http GET api.example.com/protected Authorization:"Bearer your-token"
|
||||||
|
http GET api.example.com/api X-API-Key:"your-api-key"
|
||||||
|
|
||||||
|
# File uploads
|
||||||
|
http --form POST api.example.com/upload file@document.pdf
|
||||||
|
http --multipart POST api.example.com/upload file@image.jpg description="Profile photo"
|
||||||
|
|
||||||
|
# JSON data with custom headers
|
||||||
|
http POST api.example.com/data Content-Type:application/json name="test" status:=true count:=42
|
||||||
|
|
||||||
|
# Sessions for persistent authentication
|
||||||
|
http --session=myapp POST api.example.com/login username=admin password=secret
|
||||||
|
http --session=myapp GET api.example.com/dashboard
|
||||||
|
|
||||||
|
# Download files
|
||||||
|
http --download GET api.example.com/files/report.pdf
|
||||||
|
|
||||||
|
# Pretty print and filter JSON responses
|
||||||
|
http GET api.example.com/users | jq '.data[].name'
|
||||||
|
```
|
||||||
|
|
||||||
#### Powerful Tool Combinations
|
#### Powerful Tool Combinations
|
||||||
```bash
|
```bash
|
||||||
# Find and open file with nvim using interactive selection
|
# Find and open file with nvim using interactive selection
|
||||||
|
|
|
||||||
|
|
@ -46,6 +46,7 @@
|
||||||
python312Packages.pip
|
python312Packages.pip
|
||||||
python312Packages.virtualenv
|
python312Packages.virtualenv
|
||||||
lftp
|
lftp
|
||||||
|
httpie
|
||||||
claude-code.packages.aarch64-darwin.claude-code
|
claude-code.packages.aarch64-darwin.claude-code
|
||||||
nerd-fonts.fira-code
|
nerd-fonts.fira-code
|
||||||
nerd-fonts.jetbrains-mono
|
nerd-fonts.jetbrains-mono
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue