Jeremiah Senkpiel
Jeremiah Senkpiel
Added to list: - [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer) - [`User-Agent`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent)
IMO: implement draft headers under some compile time flag with unstable-like reduced guarantees.
`eyre` also has something like this, we should probably add something similar.
If you would like to discuss this further, I suggest joining this Zulip thread: https://http-rs.zulipchat.com/#narrow/stream/261411-surf/topic/new.20Error.20type In particular I give a run-down of the problems with the current approach in Surf...
needs a rebase for clippy
I think this could be useful if you could set the headers when constructing a request, at least that would make per-client headers in Surf config a tad nicer under...
Unimportant implementation detail, but feature wise, convenience.
https://github.com/http-rs/http-types/blob/52cc143762c0bf0d3256c8ca44a8ea37c8e6aa3f/src/response.rs#L62-L64 I believe this is covered under https://github.com/http-rs/http-types/issues/303 and in the future (http-types 3.0) `Response::new()` should instead return a `Result`.
That isn't true, we re-export some things (e.g. `Body`) which as additional functions based on features, unfortunately. I suspect we could change this without anyone noticing but we should probably...