From c0dec7fb159772b9f82c2bc161fed1400edf3579 Mon Sep 17 00:00:00 2001 From: Billie Thompson Date: Sun, 15 Mar 2020 12:30:08 +0100 Subject: [PATCH] Added a httpie cheat sheet This is one of the commands I use a bit more. Here's a sheet to help others use it too. --- cheats/httpie.cheat | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 cheats/httpie.cheat diff --git a/cheats/httpie.cheat b/cheats/httpie.cheat new file mode 100644 index 0000000..cfa5e8f --- /dev/null +++ b/cheats/httpie.cheat @@ -0,0 +1,28 @@ +% httpie, http + +# send a get http request +http + +# send a http request +http + +# send an authenticated http request +http -a : + +# send a http request with a json body +http = + +# send a http request with a form body +http -f POST = + +# send a http request and see the request as well as the response +http -v + +# send a post http request wih a body from a file +http < + +# send a http request wih a custom header +http : + +$ file: ls +$ method: echo -e 'GET\nPOST\nPUT\nDELETE\nPATCH'