Mohamed Daahir

Results 124 comments of Mohamed Daahir

>changing switches in a cli is a terrible idea, even in a major release. you just don't do something like that. To maintain backward compatibility, what if `-h` stood for...

The current output of `http -h` is ``` usage: http [--json] [--form] [--multipart] [--boundary BOUNDARY] [--raw RAW] [--compress] [--pretty {all,colors,format,none}] [--style STYLE] [--unsorted] [--sorted] [--response-charset ENCODING] [--response-mime MIME_TYPE] [--format-options FORMAT_OPTIONS]...

What if the `--help` flag displayed a compact help while a `help` subcommand is was used for more complete documentation? ``` $ http --help HTTPie v0.3.0 HTTPie: modern, user-friendly command-line...

Besides the `--manual` flag, are there any plans to support `http help`, or is that not possible because of the current `argparse` setup?

The latest version of fx has now been rewritten in golang. This new version supports processing JSON using Javascript, Python and Ruby.

@tmccombs would a workaround like [this](https://github.com/clap-rs/clap/issues/815#issuecomment-1040848452) work for your use case?

Making isahc optional would also let users remove OpenSSL from their dependency tree since it [doesn't play well with rust-cross](https://github.com/rust-embedded/cross/issues/400).

>Would it maybe be possible to reduce the dependencies using cargo features? For example, I guess isahc and some other "client-side" libraries are used only with a remote server; could...

Actually, there is `matches()` function that is flexible enough for my current needs ```rust let server = MockServer::start(); let mock = server.mock(|when, then| { when.matches(|req: &HttpMockRequest| { !req.headers .as_ref() .map(|headers|...

Thanks for confirming. I have been trying to add some of the methods I mentioned to `httpmock::When` via extension traits ```rust trait WhenExt { fn header_not_exists(self, name: String) -> Self;...