Jeremiah Senkpiel

Results 120 issues of Jeremiah Senkpiel

Refs: https://github.com/http-rs/surf/issues/218 This presently fails with the default `"curl-client"` feature, which is based on [isahc](https://crates.io/crates/isahc). This works with either `"h1-client"` or `"hyper-client"`.

See https://github.com/http-rs/surf/issues/217 The second commit is similar to tide & async-std issues and relates to https://github.com/rust-lang/cargo/issues/1197

This is an internal feature flag that is implied by other feature flags for feature flagging simplicity and cannot be used alone.

semver-major

This is not very nice: ```rust let authz = BasicAuth::new("any", &api_key); let res = client.put(&path) .header(authz.name(), authz.value()) ``` (From https://github.com/squamishaccess/squamishaccess-signup-function-rs/blob/6c445916760a4db21da80c732fbe8e9c704c1bd1/src/main.rs#L168-L172) I think something like `ToHeaderPair` may be ideal? We could...

semver-major

As described in https://github.com/http-rs/surf/pull/195 (Redirects), but more severely in order to address https://github.com/http-rs/surf/issues/169 (Retries) some form of either body cloning and/or phased client sending is necessary. The easier case is...

A counterpart to https://github.com/http-rs/tide/pull/570 should be made to make use of https://github.com/http-rs/http-types/pull/174. I tried to look into this but the middleware signatures with `Next` are even more confusing than Tide's...

As suggested in discord, I think.

basically, this but with the other fields that the json database provides: https://github.com/Fishrock123/tide-compress/blob/main/build.rs see https://github.com/jshttp/mime-db/blob/master/db.json

enhancement
HTTP Header

Overhauls errors to allow for 3 types of errors: - Concrete errors (enum) from http-types itself - A dynamic error type for response handlers (almost identical to how `Error` was...

This allows HeaderValue to borrow `'static` strings, rather than make allocations. Unfortunately, we can't specialize `TryFrom` or `From`, so this also adds a new crate-only `from_static_str() -> HeaderValue`.

semver-major