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

I don't think this is a real issue, but is there any reason why `HeaderMap` is [generic over the value](https://github.com/hyperium/http/blob/master/src/header/map.rs#L45-L52)? Since it is using only the `HeaderValue` not sure what...

Signed-off-by: Xuanwo Fix https://github.com/hyperium/http/issues/259 # Bench ## Before ```rust test uri_parse_relative_medium ... bench: 128 ns/iter (+/- 12) = 468 MB/s test uri_parse_relative_query ... bench: 169 ns/iter (+/- 15) = 497...

This PR adds a strict version of uri parsing to disallow `{`, `}` and `"`. See https://github.com/hyperium/hyper/issues/3594

Uses `non_exhaustive` macro for future field expanding instead of manual implementation.

This PR keeps old methods for backward compatibility, but deprecates them PR in hyper - https://github.com/hyperium/hyper/pull/3270 Closes #603

We include many standard header names as constants in `http::header`. The exact criteria has not been defined, and it would be wise to do so. This stops it from being...

B-rfc
A-headers

Allows creating constant `Method` instances, e.g.: const PROPFIND: Method = Method::from_static(b"PROPFIND"); Fixes: https://github.com/hyperium/http/issues/587

A function to extract usernames from `Uri`s/`Authority`s would be super userful. E.g.: ```rs /// Returns None if there is no `@` in the authority section. fn (self: Authority) -> Option...