Batuhan Taskaya
245cede2c2
cmd: Implement httpie plugins interface ( #1200 )
2021-11-30 11:12:51 +03:00
Batuhan Taskaya
ef62fc11bf
core: support custom request/response classes ( #1205 )
...
* core: support custom request/response classes
* Move to `httpie.models`, prefix with `Requests`
2021-11-24 15:45:39 -08:00
dkreeft
6befaf9067
Added the ability to silence warnings via double -q
or --quiet
( #1175 )
...
* change behavior of '--quiet' to silence errors and warnings when passed twice together with '--check-status'
* Apply suggestions from code review
Co-authored-by: Jakub Roztocil <jakub@roztocil.co>
* remove header, trailing comma, rename constant and variable
* fix flags for tests
* [skip ci] Update ticket number
Co-authored-by: Dave <d.kreeft@outlook.com>
Co-authored-by: Jakub Roztocil <jakub@roztocil.co>
Co-authored-by: Mickaël Schoentgen <contact@tiger-222.fr>
2021-10-08 14:18:11 +02:00
Mickaël Schoentgen
474093acdf
Include plugin info in --debug
output ( #1165 )
...
* Include plugin info in `--debug` output
* Adapt issue number
* Fix docs
2021-09-23 17:15:14 +02:00
Mickaël Schoentgen
a62391e789
Tiny clean-up in program()
( #1135 )
2021-09-02 16:47:01 +02:00
Mickaël Schoentgen
2d55c01c7e
Fix printing redirected prepared request in verbose mode ( #1088 )
2021-06-15 13:39:46 +02:00
Mickaël Schoentgen
0ff0874fa3
Modernize the code base with f-strings ( #1068 )
2021-05-25 20:49:07 +02:00
Mickaël Schoentgen
a3a08a9a22
Use relative imports ( #1057 )
...
* Use relative imports in test
* Use relative imports
* Add myself to contributors :)
2021-05-05 14:13:39 +02:00
Jakub Roztocil
cf78a12e46
Show --check-status warning with --quiet as well. ( #1026 )
...
Fixes #1028
2021-01-31 00:58:56 +01:00
Jakub Roztocil
0f1e098cc4
Fix incorrect separators and introduce assert_output_matches()
( close #1027 )
2021-01-30 22:14:57 +01:00
Shubhendra Singh Chauhan
9883a46575
Cleanup ( #993 )
2020-12-21 12:03:25 +01:00
Jakub Roztocil
1573058811
v2.3.0
2020-10-25 21:12:38 +01:00
Jakub Roztocil
32d8b481e9
Fix --offline --multipart
, add more tests
2020-09-28 16:22:34 +02:00
Jakub Roztocil
5a5b42340f
PEP8
2020-09-28 12:50:45 +02:00
Jakub Roztocil
6925d930da
Add support for streamed uploads, --chunked, finish --multipart, etc.
...
Close #201
Close #753
Close #684
Close #903
Related: #452
2020-09-28 12:16:57 +02:00
Jakub Roztocil
d12af4a569
WIP
2020-09-25 13:44:28 +02:00
Jakub Roztocil
cd085cbc0d
Refactor built-in plugin registry to avoid circular imports
...
Fix #925
2020-05-26 10:07:34 +02:00
Jakub Roztocil
c9d770017e
Fix 'Too many redirects' error message formatting
2020-04-15 17:43:08 +02:00
Jakub Roztocil
f202f338a4
Remove automatic config file creation to avoid concurrency issues.
...
Close #788
Close #812
2019-12-02 17:43:16 +01:00
Jakub Roztocil
d9b3a16fa6
Make ExitStatus
subclass IntEnum
to allow direct int
comparisons
2019-09-18 11:57:06 +02:00
Jakub Roztocil
374c371ef1
Add httpie.status
2019-09-16 13:26:18 +02:00
Jakub Roztocil
bece3c77bb
Add one-by-one processing of each HTTP request or response and --offline
2019-09-03 17:14:39 +02:00
Jakub Roztocil
aba3b1ec01
Refactoring
2019-08-31 15:17:10 +02:00
Jakub Roztocil
0f654388fc
Python 3 annotations, super(), pathlib, etc.
2019-08-30 15:14:51 +02:00
Jakub Roztocil
8e04a24b90
Reintroduce $ https
command alias with https://
as default scheme
...
Close #608
2019-08-29 13:08:02 +02:00
Jakub Roztocil
b3d2c1876e
Python 2.7 support removal WIP
2019-08-29 08:53:56 +02:00
Jakub Roztocil
b596fedf13
exit 0
constant: OK
=> SUCCESS
to avoid confusion w/ HTTP 200 OK
2018-11-02 16:07:39 +01:00
Jakub Roztocil
7917f1b40c
Build fixes and clean-up
...
* reflect Python 3.7 release
* fix `pycodestyle` errors
* update `pycodestyle` config
* move `pytest` and `pycodestyle` config to `setup.cfg`
* add `make pycodestyle`
* add `make coveralls`
* etc.
2018-07-12 21:16:16 +02:00
Jakub Roztocil
586f45e634
Merge pull request #494 from keik/patch-1
...
Fix typo
2017-02-07 20:50:43 +01:00
Jakub Roztocil
9b23a4ac9a
Exit with status 130 on CTRL-C
...
http://www.tldp.org/LDP/abs/html/exitcodes.html
#531
2016-10-26 11:53:01 +02:00
KATO Kei
6b06d92a59
Fix typo
2016-07-27 09:54:26 +09:00
Pedro Rodrigues
8f6bee9196
codestyle fixes
2016-07-19 17:23:40 +01:00
Jakub Roztocil
098257c0be
Rename --print-others to --history-print.
2016-07-01 18:49:27 +02:00
Jakub Roztocil
6e1dbadff9
Replace --show-redirects with --all and add --print-others, -P
...
With --all, any intermediary requests/responses are shown (such as redirects
or the initial unauthorized Digest auth request).
The --print-others, -P option works like --print, -p, but only applies to
intermediary requests/responses. The default behaviour is to inherit
the value of -p.
2016-03-07 07:04:23 +08:00
Jakub Roztocil
bb49a1f979
Improved --debug output
2016-03-05 01:42:48 +08:00
Jakub Roztocil
0d2d24eac7
Copy
2016-03-01 21:37:26 +08:00
Jakub Roztocil
e2751e5fa3
Fixed args for Python 2.x
2016-03-01 21:28:10 +08:00
Jakub Roztocil
2a25d71aa4
Refactored main() into program() + main()
2016-03-01 21:10:54 +08:00
Jakub Roztocil
01ca7f0eb2
Ignore redirected stdout with --output, -o
...
This makes it easier to use HTTPie in cron jobs and scripts.
Closes #259
2016-03-01 20:24:50 +08:00
Jakub Roztocil
ed08ab133e
Refactoring
2016-02-29 15:00:17 +08:00
Jakub Roztocil
e18b609ef7
Fixed --max-redirects
2016-02-29 14:21:25 +08:00
Jakub Roztocil
356e043651
Added --show-redirects and --max-redirects
...
Closes #157 , #183 , #188 , #246
2016-02-29 14:12:09 +08:00
Jakub Roztocil
c6d4f6cdf6
Show redirects WIP
2016-02-29 14:07:08 +08:00
Marc Abramowitz
f855de16c2
Increase test coverage for error handling
2015-02-15 23:22:52 -08:00
Marc Abramowitz
7f8adad313
Print info about request on error
...
This can help in diagnosing certain issues. For example, if I were
trying to use a "http+unix" URL but I don't have #299 , then I'll get the
following:
[marca@marca-mac2 httpie]$ http http+unix://%2Ftmp%2Fprofilesvc.sock/status/pid
http: error: ConnectionError: ('Connection aborted.', gaierror(8, 'nodename nor servname provided, or not known'))
while doing GET request to URL: http://http+unix//%2Ftmp%2Fprofilesvc.sock/status/pid
Having the URL in the error message is super useful here so that I know an
extra `http://` is getting prepended and it's not doing what I expected.
2015-02-15 23:22:52 -08:00
Jakub Roztocil
b2ec4f797f
Exit with 0 for --version and --help ( closes #293 ).
2015-01-19 15:39:46 +01:00
Jakub Roztocil
8e170b059c
Fixed tests.
2014-06-03 19:45:57 +02:00
Jakub Roztocil
e4c68063b9
Converted built-in formatters to formatter plugins.
...
Still work in progress and the API should be considered private for now.
2014-05-12 19:12:39 +02:00
Jakub Roztocil
05db75bdb1
Modularized output, refactoring
...
Making it ready for output formatting plugin API.
2014-04-27 21:58:00 +02:00
Jakub Roztocil
15e62ad26d
Implemented more robust unicode handling.
...
* Immediatelly convert all args from `bytes` to `str`.
* Added `Environment.stdin_encoding` and `Environment.stdout_encoding`
* Allow unicode characters in HTTP headers and basic auth credentials
by encoding them using UTF8 instead of latin1 (#212 ).
2014-04-26 15:07:31 +02:00