132 Commits

Author SHA1 Message Date
Mohamed Daahir
9afa25ca19 bump version to v0.24.1 2025-05-02 15:20:05 +01:00
Mohamed Daahir
21e998e5b2 bump version to v0.24.0 2025-02-18 08:15:49 +00:00
zuisong
53e7bbd88a
update help doc 2025-02-04 22:10:12 +08:00
zuisong
c4bbdba60e
update help doc 2025-01-23 10:51:53 +08:00
zuisong
f85194ac1e
support compress request body 2025-01-22 18:21:17 +08:00
Fotis Gimian
196ca1f162
Switch to generating completions at runtime (#393)
* Allow for completion and man page generation at runtime and support for Elvish and Nshull

* Refine runtime generation based on feedback provided
2025-01-06 14:24:36 +02:00
Mohamed Daahir
65898226ee bump version to v0.23.1 2025-01-02 13:37:48 +02:00
Mohamed Daahir
0fb0a13ecb bump version to v0.23.0 2024-10-12 22:22:45 +01:00
Mohamed Daahir
89e5428618 Merge branch 'hotfix/v0.22.0-re-fix-download-path-escape' 2024-07-08 23:30:41 +01:00
Mohamed Daahir
c0f46a4999 bump version to v0.22.2 2024-07-08 23:16:09 +01:00
Mohamed Daahir
dd27ddb4ac bump version to v0.22.1 2024-07-08 22:57:29 +01:00
Jan Verbeek
41ab47f32f Add --debug option for logging and backtraces
Add `env_logger` to be able to print the logs that our libraries
already generate.

Add some logging to the application code. We'll probably want more log
messages, and we might want to upgrade some of them from trace to
debug.

Add a `--debug` flag that automatically enables `env_logger` as well
as backtraces for `anyhow` and panics.

```console
$ xh --debug :
[2024-06-05T13:54:40Z DEBUG xh] xh 0.22.0 -native-tls +rustls
[2024-06-05T13:54:40Z DEBUG xh] Cli {
        httpie_compat_mode: false,
        [...]
    }
[2024-06-05T13:54:40Z DEBUG xh] Complete URL: http://localhost/
[2024-06-05T13:54:40Z DEBUG xh] HTTP method: GET
[2024-06-05T13:54:40Z DEBUG reqwest::connect] starting new connection: http://localhost/
[2024-06-05T13:54:40Z DEBUG hyper_util::client::legacy::connect::dns] resolving host="localhost"
[...]
xh: error: error sending request for url (http://localhost/)

Caused by:
    0: client error (Connect)
    1: tcp connect error: Connection refused (os error 111)
    2: Connection refused (os error 111)

Stack backtrace:
   0: anyhow::error::<impl core::convert::From<E> for anyhow::Error>::from
             at ~/.cargo/registry/src/index.crates.io-6f17d22bba15001f/anyhow-1.0.82/src/error.rs:565:25
[...]
```

We could ask users to post `--debug` output when reporting bugs.
2024-06-05 17:47:36 +02:00
Mohamed Daahir
0c335ac26a bump version to v0.22.0 2024-04-13 01:34:00 +03:00
Mohamed Daahir
e23940ddea update manpages and completions 2024-04-13 00:24:38 +03:00
zuisong
38724cc167
enable stream when content-type is text/event-stream 2024-04-07 17:52:08 +08:00
zuisong
c60ced6708
support http2-prior-knowledge 2024-03-22 12:49:19 +08:00
Mohamed Daahir
9580a9050e bump version to v0.21.0 2024-01-28 21:08:51 +00:00
Mohamed Daahir
b694c7776b bump version to v0.20.1 2023-11-19 17:08:38 +00:00
Mohamed Daahir
6ed5362db8 bump version to v0.20.0 2023-11-19 16:50:09 +00:00
Mohamed Daahir
d34e0537ee bump version to v0.19.4 2023-10-22 16:54:08 +01:00
Mohamed Daahir
9e3b1b46ea bump version to v0.19.3 2023-10-21 21:23:38 +01:00
Mohamed Daahir
c45cc0bf97 bump version to v0.19.2 2023-10-21 15:00:13 +01:00
Mohamed Daahir
0e4a87baf1 bump version to v0.19.1 2023-10-09 21:20:10 +01:00
Mohamed Daahir
a548827411 fix issues in man page generation 2023-10-09 21:17:52 +01:00
Mohamed Daahir
aec1923991 bump version to v0.19.0 2023-10-09 21:04:20 +01:00
Mohamed Daahir
25a700e971 regenerate completions and man pages 2023-08-26 15:37:07 +01:00
Mohamed Daahir
72c71ec857 regenerate man page and completions 2023-08-13 15:09:48 +01:00
Mohamed Daahir
a24ff585ee bump version to v0.18.0 2023-02-20 20:48:30 +00:00
ducaale
82370ec033 regenerate completions and manpages 2023-01-03 00:30:46 +02:00
ducaale
7bef42be6c replace backticks with double quote 2023-01-02 16:06:57 +02:00
ducaale
870440b11d update docs 2023-01-02 16:00:15 +02:00
ducaale
cebf69126d regenerate manpages 2022-12-30 18:37:37 +02:00
ducaale
0817ddefa6 Merge branch 'master' into header-and-querystring-from-file 2022-12-27 14:39:36 +02:00
ducaale
ffa8fb2e7a regenerate manpages 2022-12-13 21:00:11 +00:00
Mohamed Daahir
55253e12e9
mention that NO_PROXY affects proxies from env only
Co-authored-by: Jan Verbeek <jan.verbeek@posteo.nl>
2022-12-13 20:58:44 +00:00
Mohamed Daahir
a1759d8c4c
describe input of http_proxy and HTTPS_PROXY env vars
Co-authored-by: Jan Verbeek <jan.verbeek@posteo.nl>
2022-12-13 20:39:40 +00:00
ducaale
7aaa16810b document NO_PROXY env variable 2022-12-13 18:11:18 +00:00
ducaale
91d5ca47b5 update docs 2022-11-13 22:17:51 +00:00
ducaale
7300f3bf93 bump version to v0.17.0 2022-11-08 22:55:39 +00:00
ducaale
a99ca3cbbf regenerate man pages 2022-11-08 22:19:45 +00:00
ducaale
27508051ab mention --curl translation in description
https://github.com/ducaale/xh/pull/250#discussion_r1015842972
2022-11-07 21:29:40 +00:00
ducaale
1e406cb0b1 regenerate man pages 2022-11-07 21:07:35 +00:00
ducaale
3b7cb5fb44 use inline formatting in the description section 2022-11-07 21:02:58 +00:00
Mohamed Daahir
08f2485639
rewrite description section of the man page
Co-authored-by: Jan Verbeek <jan.verbeek@posteo.nl>
2022-11-07 20:55:11 +00:00
ducaale
1895d9f7b8 regenerate man pages 2022-09-27 21:52:49 +01:00
ducaale
31b9755f6a remove mention of urls that begin with :// 2022-09-27 21:36:14 +01:00
Mohamed Daahir
f734e87457
replace "querystring" with the actual URL example
Co-authored-by: Jan Verbeek <jan.verbeek@posteo.nl>
2022-09-27 21:21:42 +01:00
ducaale
8b66732a80 shorten description for METHOD 2022-09-27 21:17:41 +01:00
Mohamed Daahir
35994941a6
use title case when mentioning header
Co-authored-by: Jan Verbeek <jan.verbeek@posteo.nl>
2022-09-27 21:12:38 +01:00
ducaale
b2de613a63 slight tweak in the examples section 2022-09-25 12:22:55 +01:00