From 44bb2433c813c58010bdab2e5ae7cd737631c83e Mon Sep 17 00:00:00 2001 From: Max Xu Date: Wed, 20 Dec 2017 12:16:57 +0800 Subject: [PATCH 1/5] http-prompt.md: add page A great http interactive tool. --- pages/linux/http-prompt.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 pages/linux/http-prompt.md diff --git a/pages/linux/http-prompt.md b/pages/linux/http-prompt.md new file mode 100644 index 000000000..71ac1e287 --- /dev/null +++ b/pages/linux/http-prompt.md @@ -0,0 +1,15 @@ +# http-prompt + +> An interactive command-line HTTP client featuring autocomplete and syntax highlighting. + +- Start with the last session or http://localhost:8000: + +`http-prompt` + +- Start with the given URL: + +`http-prompt {{http://httpbin.org}}` + +- Start with some initial options: + +`http-prompt {{localhost:8000/api}} --auth user:pass username={{somebody}}` From d35bc0d9e0f0e508cf9c746fee404994f6b1e5cf Mon Sep 17 00:00:00 2001 From: Max Xu Date: Thu, 21 Dec 2017 00:17:52 +0800 Subject: [PATCH 2/5] Update http-prompt.md --- pages/linux/http-prompt.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pages/linux/http-prompt.md b/pages/linux/http-prompt.md index 71ac1e287..065cce456 100644 --- a/pages/linux/http-prompt.md +++ b/pages/linux/http-prompt.md @@ -2,14 +2,14 @@ > An interactive command-line HTTP client featuring autocomplete and syntax highlighting. -- Start with the last session or http://localhost:8000: +- Launch a session targeting the default url of http://localhost:8000 or the previous session: `http-prompt` -- Start with the given URL: +- Launch a session with a given url: -`http-prompt {{http://httpbin.org}}` +`http-prompt {{http://example.org}}` -- Start with some initial options: +- Launch a session with some initial options: -`http-prompt {{localhost:8000/api}} --auth user:pass username={{somebody}}` +`http-prompt {{localhost:8000/api}} --auth user:pass username={{user}}` From 01ea4dd31d130c41586bc33b5b2f185762cb9290 Mon Sep 17 00:00:00 2001 From: Agniva De Sarker Date: Wed, 20 Dec 2017 22:48:12 +0530 Subject: [PATCH 3/5] change to example.com --- pages/linux/http-prompt.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/linux/http-prompt.md b/pages/linux/http-prompt.md index 065cce456..0d87f6e05 100644 --- a/pages/linux/http-prompt.md +++ b/pages/linux/http-prompt.md @@ -8,7 +8,7 @@ - Launch a session with a given url: -`http-prompt {{http://example.org}}` +`http-prompt {{http://example.com}}` - Launch a session with some initial options: From 93080c0e905412bd07b14abc8777f308d983ad2d Mon Sep 17 00:00:00 2001 From: Max Xu Date: Wed, 27 Dec 2017 17:05:21 +0800 Subject: [PATCH 4/5] Update http-prompt.md --- pages/linux/http-prompt.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/linux/http-prompt.md b/pages/linux/http-prompt.md index 0d87f6e05..c7908e6a4 100644 --- a/pages/linux/http-prompt.md +++ b/pages/linux/http-prompt.md @@ -12,4 +12,4 @@ - Launch a session with some initial options: -`http-prompt {{localhost:8000/api}} --auth user:pass username={{user}}` +`http-prompt {{localhost:8000/api}} --auth {{username:password}} From 4e087c3b0740c890259bc949289306424b95a523 Mon Sep 17 00:00:00 2001 From: Max Xu Date: Wed, 27 Dec 2017 22:52:48 +0800 Subject: [PATCH 5/5] Update http-prompt.md --- pages/linux/http-prompt.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/linux/http-prompt.md b/pages/linux/http-prompt.md index c7908e6a4..d08a1b0d0 100644 --- a/pages/linux/http-prompt.md +++ b/pages/linux/http-prompt.md @@ -12,4 +12,4 @@ - Launch a session with some initial options: -`http-prompt {{localhost:8000/api}} --auth {{username:password}} +`http-prompt {{localhost:8000/api}} --auth {{username:password}}`