From 93d24e1f0ec89a0dcf1b211855d1802ad30ed428 Mon Sep 17 00:00:00 2001 From: Fazle Arefin Date: Mon, 26 Aug 2024 00:20:35 +1000 Subject: [PATCH] httpie: update page (#13508) Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com> --- pages/common/httpie.md | 37 +++++++++---------------------------- 1 file changed, 9 insertions(+), 28 deletions(-) diff --git a/pages/common/httpie.md b/pages/common/httpie.md index 4c8ecaf979..87dd07e31e 100644 --- a/pages/common/httpie.md +++ b/pages/common/httpie.md @@ -1,36 +1,17 @@ # httpie -> A user friendly HTTP tool. -> More information: . +> Management interface for HTTPie. +> See also: `http`, the tool itself. +> More information: . -- Send a GET request (default method with no request data): +- Check updates for `http`: -`http {{https://example.com}}` +`httpie cli check-updates` -- Send a POST request (default method with request data): +- List installed `http` plugins: -`http {{https://example.com}} {{hello=World}}` +`httpie cli plugins list` -- Send a POST request with redirected input: +- Install/upgrade/uninstall plugins: -`http {{https://example.com}} < {{file.json}}` - -- Send a PUT request with a given JSON body: - -`http PUT {{https://example.com/todos/7}} {{hello=world}}` - -- Send a DELETE request with a given request header: - -`http DELETE {{https://example.com/todos/7}} {{API-Key:foo}}` - -- Show the whole HTTP exchange (both request and response): - -`http -v {{https://example.com}}` - -- Download a file: - -`http --download {{https://example.com}}` - -- Follow redirects and show intermediary requests and responses: - -`http --follow --all {{https://example.com}}` +`httpie cli plugins {{install|upgrade|uninstall}} {{plugin_name}}`