http icon indicating copy to clipboard operation
http copied to clipboard

Rust HTTP types

Results 159 http issues
Sort by recently updated
recently updated
newest added

The HeaderMap implementation as a whole is mostly orignal to http-rs, but the implementation was based on and derived from the indexmap crate (formerly ordermap) from circa 2017, from which...

When I read the HeaderMap code I recognize that it's based on my own code in crate indexmap (at one time formerly "ordermap"). The license is Apache-2 or MIT but...

This is a draft PR for adding lifetimes HeaderValues, HeaderMap, and Response, so that header _values_ can borrow from something with some longer lifetime. The patch is implemented by suggestion...

Fixes #46 The `PartialEq` implementation of Scheme missed two cases, 1. Other to Standard 2. Standard to Other For example, this will make `http` not equal to `HTTP` where the...

When using the HTTP1.1 protocol, we can convert the entire buffer into bytes:: Bytes, and then convert a portion of it into ByteStr for use (for example, as HeaderName) for...

Fixes #330. Replaces #442 , #448 , and #454 . Creating a `Request`, `Response`, or `Uri` with the builder pattern should not require handling errors unless opting in by using...

Add support for quotes in the query. Just because sometimes they are not encoded. I've read the https://url.spec.whatwg.org/#query-state and as far as I understand it does not allow for that....

clean up some codes.

```rust use http::uri::Uri; fn main() { let uri: Uri = "http://localhost".parse().unwrap(); println!("{:?}", uri.into_parts().path_and_query); } ``` Results in: ``` Some(/) ``` [Playground](https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=afe3d785754893439b9551f9b9b49df8) Is that intended? I could understand `path_and_query` being `Some("")`,...