summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMickaƫl Schoentgen <contact@tiger-222.fr>2021-09-09 10:19:19 +0200
committerGitHub <noreply@github.com>2021-09-09 10:19:19 +0200
commit30fd9d9cf5439e90d9deadbe1bfd6ccf92abf0fa (patch)
treeed60ebcc7c8598c7ab1c61f6e798cd817569cc35
parent8922a77156a7dc96bac9e3e94fe900bb17f976c2 (diff)
Update options to include `--raw` (#205)
-rw-r--r--http_prompt/execution.py2
-rw-r--r--http_prompt/options.py1
-rw-r--r--requirements.txt2
3 files changed, 3 insertions, 2 deletions
diff --git a/http_prompt/execution.py b/http_prompt/execution.py
index 9a66d7a..6ddc064 100644
--- a/http_prompt/execution.py
+++ b/http_prompt/execution.py
@@ -90,7 +90,7 @@ grammar = r"""
value_optname = "--pretty" / "--style" / "-s" / "--print" / "-p" /
"--output" / "-o" / "--session-read-only" / "--session" /
"--auth-type" / "--auth" / "-a" / "--proxy" / "--verify" /
- "--cert" / "--cert-key" / "--timeout"
+ "--cert" / "--cert-key" / "--timeout" / "--raw"
cd = _ "cd" _ string? _
rm = (_ "rm" _ "*" _) / (_ "rm" _ ~r"\-(h|q|b|o)" _ mutkey _)
diff --git a/http_prompt/options.py b/http_prompt/options.py
index 3ca0712..b10fcef 100644
--- a/http_prompt/options.py
+++ b/http_prompt/options.py
@@ -35,6 +35,7 @@ VALUE_OPTIONS = [
('--pretty', 'Control output processing'),
('--print', 'Specify what output should contain'),
('--proxy', 'Specify proxy URL'),
+ ('--raw', 'Pass raw request data without extra processing'),
('--session', 'Create, or reuse and update a session'),
('--session-read-only', 'Create or read a session'),
('--style', 'Output coloring style'),
diff --git a/requirements.txt b/requirements.txt
index 780c888..6ec1d9e 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,5 +1,5 @@
click>=5.0
-httpie>=2.4.0
+httpie>=2.5.0
parsimonious>=0.6.2
prompt-toolkit>=2.0.0,<3.0.0
Pygments>=2.1.0