http
http copied to clipboard
Rust HTTP types
This PR provides ability to get username and password (userinfo) from `Authority`. I proposed 3 ways: 1. two functions `username()` and `password()` 1. return new struct `UserInfo
## Motivation - A few AWS services (like SQS, IAM, EC2) use `application/x-www-form-urlencoded`-based RPC calls. While this encoding is typically handled by the SDKs, this code needs to exist somewhere....
It seems the URI parser stumbles with URNs. A simple test to reproduce: ```rust fn main() { use http::uri::Uri; let uri = "urn:isbn:1238492".parse::(); println!("{:?}", uri); } ``` Produces the output:...
It would be nice if the `http` crate would have a `serde` feature that makes things like `StatusCode` serializable. I am currently in the progress of refactoring the [`http-api-problem`](https://github.com/chridou/http-api-problem) crate...
This might be because I am not well versed in the HTTP URI standards but I would expect following two pieces of code to produce the same (or basically the...
Currently, libraries that use http::Request have 2 different ways to represent a request, dependent on the expected usage (client or server). This seems confusing, and I'd like to discuss if...
`Digest` is a standard header, but it's not included in the list of constant headers.
It would be useful to be able to put them in a BTreeMap/BTreeSet.