http icon indicating copy to clipboard operation
http copied to clipboard

Rust HTTP types

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

The documentation of `HeaderValue::from_str` says that: https://github.com/hyperium/http/blob/abe651273f4cf19cf9a247f376e9ece85becc722/src/header/value.rs#L101-L104 So I would expect this function to return an error when I pass it a non-ascii utf8 string which contains byte values in...

S-bug
E-easy
A-headers

[RFC 8470](https://datatracker.ietf.org/doc/html/rfc8470) defines an `Early-Data` header, but the `http::header` module doesn't have a corresponding `EARLY_DATA` constant that makes it convenient to use. Could such a thing be added, please?

It would be nice if `http::Uri` implemented `Deserialize` and `Serialize` under a `serde` feature flag. Would a PR be welcome for this?

`HeaderValue::to_str()` returns an error if the header value contains any byte that's not "visible ASCII" (though this is misleading as `\t` is legal even though it's not visible). This is...

As stated [here](https://tools.ietf.org/html/rfc7230#section-3.2.4), > The field value does not include any leading or trailing whitespace: OWS occurring before the first non-whitespace octet of the field value or after the last...

S-feature
E-easy

As this crate stands for correctness, it is imperative to fix misleading terminology that is used through out the request-target handling documentation. 1. Use `HttpRequestTarget` instead of `Uri`, as it...

Hi, any plan to include support for parsing and serializing structured headers? (RFC8941)

This moves from the `finish` method to the `finish_non_exhaustive` method in Debug impl blocks where applicable. "Marks the struct as non-exhaustive, indicating to the reader that there are some other...

Is it intentional that the `Extend` implementations for `HeaderMap` don't call `.reserve` before starting iteration and insertion?

After various other changes, make `StatusCode::as_str` return a `&'static str`. Since 'static is a longer lifetime, I don't think this constitutes a breaking change, but like #443, this _could_ be...