Ririsoft

Results 32 comments of Ririsoft

Hello ! > Opening a PR with a usage example would indeed be a great starting point. I will submit one shortly for further brainstorming, addressing the HTTP range headers...

After my implementation of range request headers (PR #180) I am not convinced that a typed header will bring much value over the existing `http_types::headers::ToHeaderValues` and `std::convert::TryFrom`. The only added...

Hi @Fishrock123, I did not know about _negotiator_, this is interesting. Thanks for sharing ! It seems we are ending with 2 close APIs with some subtle differences that suite...

> Oops, yeah `from_headers` ought to probably return `Result` in order to catch both malformed requests and the absence of requests. While experiencing with such APIs on my side I...

FWIW here is how I do it using the [async-ctrlc](https://crates.io/crates/async-ctrlc) crate: ```rust use async_std::prelude::FutureExt; async fn run() -> Result { let ctrlc = async { CtrlC::new().expect("Cannot use CTRL-C handler").await; println!("termination...

> I think if we have this, then `ModState` probably belongs in `http-types`? > > I am not sure if that would be confusing or not, given most of the...

> This is indeed an open question. It could be renamed in something like `http_types::conditional::CondState`, or a better name that suite more HTTP wording. But personally I am more on...

I am closing this PR as I am not using/working on tide anymore and will thus not be able to work on this further on.

What I have in mind in something equivalent at fail2ban logs such: ``` 2020-11-13 09:21:26,776 fail2ban.actions [9470]: NOTICE [apache-auth] Ban 91.241.19.84 2020-11-13 09:31:27,545 fail2ban.actions [9470]: NOTICE [apache-auth] Unban 91.241.19.84 2020-11-13...

Another use case with [tempdir](https://github.com/rust-lang-nursery/tempdir) being deprecated in favor of [tempfile](https://github.com/Stebalien/tempfile), maintained by @Stebalien who reported this issue. The deprecation is not active yet but I would really like cargo...