265 Commits

Author SHA1 Message Date
ducaale
63bb5053e2 fix failing tests 2021-04-22 22:48:59 +01:00
ducaale
423d9d7679 Merge branch 'develop' into sessions 2021-04-22 22:45:15 +01:00
ducaale
6975482d83 test named sessions 2021-04-22 22:33:32 +01:00
ducaale
3c7943b1d2 test anonymous sessions 2021-04-22 22:24:23 +01:00
Shun Sakai
0de73425ea Change value of Accept-Encoding
Add br and remove deflate.
2021-04-20 23:46:39 +09:00
ducaale
5e5742e16d allow setting unset headers 2021-04-17 15:35:47 +01:00
ducaale
6769e6fc82 attach anyhow context to session errors 2021-04-11 19:28:15 +01:00
ducaale
1826571c2f test unsetting headers 2021-04-11 16:09:44 +01:00
ducaale
3e514ffaee add integration tests 2021-03-29 21:09:52 +01:00
ducaale
c3d20fa5f4 add test for for json keys order 2021-03-21 14:57:52 +00:00
Jan Verbeek
e35c2a88c3 Add more buffering and make piped output more consistent with HTTPie 2021-03-21 14:34:23 +01:00
Jan Verbeek
dd0d4d8257 Separate JSON records with double newline 2021-03-18 19:42:10 +01:00
Jan Verbeek
2c62b428b6 Slight directness and consistency improvements 2021-03-16 09:22:10 +01:00
Jan Verbeek
36a0d05d4b Add coloring tests 2021-03-15 22:37:13 +01:00
David Harks
901ef7b73b :man-facepalming: it's "windows", not "win" 2021-03-07 16:23:24 -06:00
David Harks
8aa6e24cae Support mocking home_dir() on Windows 2021-03-07 12:43:48 -06:00
David Harks
fece986e89 Further minor tweaks 2021-03-07 11:31:30 -06:00
David Harks
cbfbf5ded0 Tweaks and additional tests 2021-03-07 11:24:53 -06:00
David Harks
ed27e9f3d0 Fmt 2021-03-06 23:15:22 -06:00
David Harks
04d5d5556f Add test for netrc functionality 2021-03-06 23:13:30 -06:00
David Harks
0a36ca886e Address review feedback 2021-03-06 22:32:45 -06:00
Jan Verbeek
06b88df673 Do not format invalid JSON, highlight CSS & JS 2021-03-01 14:37:47 +01:00
Jan Verbeek
0e1c5a06f2 Use application/json by default for a raw body from stdin 2021-03-01 14:12:43 +01:00
Jan Verbeek
85687cbb96 Use static OpenSSL for tests 2021-02-27 16:05:36 +01:00
Jan Verbeek
7a8722027c Fix incorrect test comment 2021-02-25 10:25:24 +01:00
Jan Verbeek
eb9441671c Improve error message for raw multipart body 2021-02-25 10:25:05 +01:00
Jan Verbeek
bff656f962 Try to detect undeclared JSON response bodies 2021-02-23 22:17:13 +01:00
Jan Verbeek
1caf80b802 Make --json/--form/--multipart override each other and force content-type 2021-02-23 21:47:10 +01:00
Jan Verbeek
62d12e1482 Refactor request construction, print binary suppressor for request 2021-02-20 21:34:43 +01:00
Jan Verbeek
ba0aecc86e Revise binary data detection mechanism 2021-02-20 17:47:33 +01:00
Jan Verbeek
814c5dbb2f Merge remote-tracking branch 'origin/develop' into remove-async 2021-02-20 00:14:18 +01:00
jihchi
c821a05f9d Merge branch 'develop' into add_supports_for_https_relevant 2021-02-19 08:21:36 +08:00
Jan Verbeek
5f907b9ce4 Merge remote-tracking branch 'origin/develop' into remove-async 2021-02-17 21:36:33 +01:00
Jan Verbeek
b2bc423e14 Add warning to --check-status 2021-02-17 20:59:42 +01:00
Jan Verbeek
2cb29d4ea2 Run tests as if they're in the terminal 2021-02-17 20:56:43 +01:00
Jan Verbeek
43bac3ad00 Allow formatting and color without terminal, fix tests after rebase 2021-02-17 20:56:43 +01:00
Jan Verbeek
849dc15642 Remove use of async
This also

- Reworks the printing system, making binary data detection and
  trailing newlines more consistent

- Removes some obsolete dependencies from Cargo.toml
2021-02-17 20:56:40 +01:00
jihchi
644b9b18b9 Make test assertions better (rest of test cases) 2021-02-17 22:48:33 +08:00
Jihchi Lee
102ca44871
Make test assertions better
Co-authored-by: Jan Verbeek <jan.verbeek@posteo.nl>
2021-02-17 22:38:13 +08:00
jihchi
8000be0417 Remove unnecessary returning type in --verify and --cert/--cery-key tests 2021-02-17 22:32:51 +08:00
jihchi
0e3ce6e11d Merge branch 'develop' into add_supports_for_https_relevant 2021-02-17 08:57:24 +08:00
Jan Verbeek
b7857f138a Rework help printing, split off --bearer from --auth
--help now prints short help again, while help as a subcommand prints
long help.

--auth only does basic authentication, --auth-type is removed, and
--bearer does bearer authentication.
2021-02-16 01:04:28 +01:00
Stefan Zwanenburg
6e1e27819d Moved proxy argument parsing tests into cli.rs, and added proxy integration tests 2021-02-15 21:03:55 +01:00
Stefan Zwanenburg
75bfbc224e Merge remote-tracking branch 'origin/develop' into proxy-flags 2021-02-15 15:20:31 +01:00
Stefan Zwanenburg
b2edc97c66 Remove angled brackets from value_name for --proxy option 2021-02-15 15:17:07 +01:00
jihchi
67e7589dfd Simplify assertions such that it won't easily break in the future 2021-02-15 22:15:22 +08:00
jihchi
b93ea7cdfc Add --verify, --cert and --cert-key arguments 2021-02-15 22:03:45 +08:00
Stefan Zwanenburg
3467ed0dab Added a few cases to test --proxy 2021-02-15 14:50:35 +01:00
Jan Verbeek
f2a30eac87 Use httpmock for tests 2021-02-14 23:38:24 +01:00
Jan Verbeek
c4bb865628 Remove unnecessary Result return types (Clippy) 2021-02-13 23:27:11 +01:00