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

Missing a `uri.fragment()` method?

S-feature
B-rfc
A-uri

`PathAndQuery::from_static("")` tries to pretend to be `PathAndQuery::from_static("/")`, even going so far as to have the same `Debug` printing, returning the same string from `.as_str()`, and comparing as the same with...

error[E0015]: calls in constant functions are limited to constant functions, tuple structs and tuple variants --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/http-0.2.7/src/header/name.rs:98:25 | 98 | $name_bytes => Some(StandardHeader::$konst), | ^^^^^^^^^^^ ... 154 | / standard_headers!...

It is messy to modify a `Uri` instance with `Uri::Builder`. For example, if one wants to modify `path_and_query`, they should do something like this: ```rust let uri: &Uri = req.uri();...

This is mostly a revert of commit 4ce5e6a3a33c6548f885972db6f23450be18e133, but this does not bring back the error variants suffixed with `Bytes` (db9b1b9a76ce9c0b366fc6fff433ca4ca00571d1). This also replaces usages of the internal `from_shared` associated...

According to RFC 3986 section 3.2.2 https://datatracker.ietf.org/doc/html/rfc3986#section-3.2.2 , the host section of the authority of an url is allowed to carry percent-encoded characters. The parsing code only allowed `%` in...

The `StatusCode` docs imply full coverage of IANA status codes and these two were added after the original implementation. Its a highly safe change, but I'd wait for 1.0.0, treating...

I wanted to write-up some thoughts on the future direction for the `StatusCode::as_str` method. The `as_str` method returns the numeric part of the status code as a string slice. So,...

B-rfc
A-status

According to [rfc7230](https://tools.ietf.org/html/rfc7230#section-3.2.4) http parsers are expected to ignore space around header values. Trying to construct a HeaderValue with leading or trailing whitespace is therefore clearly an error.

B-rfc