diff --git a/README.md b/README.md index 3390a99..3a93cba 100644 --- a/README.md +++ b/README.md @@ -174,6 +174,7 @@ Launch with `gitui` in any git repository for: - **ripgrep (rg)**: Fast text search - **bat**: Syntax-highlighted cat replacement - **btop**: Modern system monitor +- **httpie**: Modern HTTP client for API testing - **zoxide**: Smart cd with frecency algorithm #### fd Usage Examples @@ -205,6 +206,36 @@ fzf --preview 'bat --style=numbers --color=always {}' - `Ctrl+R` - Search command history interactively - `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 ```bash # Find and open file with nvim using interactive selection diff --git a/flake.nix b/flake.nix index a1b6182..3d391fe 100644 --- a/flake.nix +++ b/flake.nix @@ -46,6 +46,7 @@ python312Packages.pip python312Packages.virtualenv lftp + httpie claude-code.packages.aarch64-darwin.claude-code nerd-fonts.fira-code nerd-fonts.jetbrains-mono