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

See [fetch spec](https://www.w3.org/TR/fetch-metadata/#sec-fetch-dest-header), which is the defining spec according to the [relevant IANA entry](https://www.iana.org/assignments/http-fields/http-fields.xhtml#field-names).

While working with the crate, I noticed that many types like `Method`, `HeaderName` and others have `from_bytes`, but `Scheme` only has `from_str`. Would it make sense to add `from_bytes` for...

Its a minor issue, but currently the trait bounds of the `T` in `check_bounds` are `Send` and `Send`. https://github.com/hyperium/http/blob/9f86d52c1310c485a3128f3c86c0ca7277fe5d92/src/header/map.rs#L3914-L3918 I think the author of that test meant `fn check_bounds {}`.

When traversing boundaries it's currently quite hard (nearly impossible) to extract all extensions and transfer them to somewhere else. There are some creative ways to work around this, like inserting...

Hi it seems the fragments part of a URI is dropped https://github.com/hyperium/http/blob/b53194720352ef923d5fa662bc52592520e8b3ce/src/uri/tests.rs#L210 can we added to the Uri struct? It can be useful for certain connectors to do different logic...

CC #777 My use case is this: I write access log, and I need to put version there. `Display` serves the purpose. (`Debug` could work too, but it is not...

It is stable since Rust 1.40 https://blog.rust-lang.org/2019/12/19/Rust-1.40.0/ and MSRV is 1.49 https://github.com/hyperium/http/blob/4304e604fc668baf675867d9045145f015f0957e/Cargo.toml#L24

Stringifications of the variants of the `Version` are known at compile time so requiring a `Debug` format is not necessary. This is nice for me specifically because I want to...

I'm a little surprised that `Version` doesn't impl `std::fmt::Display` when I formatting the log, so I use `Debug` for now. I searched issues but didn't find relevant topic. Is adding...