headers icon indicating copy to clipboard operation
headers copied to clipboard

Typed HTTP Headers from hyper

Results 70 headers issues
Sort by recently updated
recently updated
newest added

Only `gzip` was implemented for `ContentEncoding`, I implemented all other known encodings. See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Encoding.

tl;dr: `bytes=-x` is being mapped to `..x` by this crate, where http headers mean the last `x` bytes, and rust `BoundRanges` mean the first `x` bytes. ### Introduction to the...

bug

According to to the quoted [RFC 6265, section 4.2.2](https://datatracker.ietf.org/doc/html/rfc6265#section-4.2.2) > Although cookies are serialized linearly in the Cookie header, > servers SHOULD NOT rely upon the serialization order. In particular,...

See the Mozilla documentation on [COOP](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cross-Origin-Opener-Policy) and [COEP](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cross-Origin-Embedder-Policy). I don't really understand some of the architectural decisions in this crate, so I might have done some mistakes in the implementation...

This is exactly #67 except it uses the latest version of language-tags and is rebased. edit: Now one extra commit of my own, as commit authorship shows. Closes #67.

The `Content-Disposition` header is a more complicated one, and coming up with an appropriate design that is easy and clear to use while also being efficient is important. Where as...

rfc

The following test exposes a few issues in `headers::authorization::Bearer`: ``` #[cfg(test)] mod tests { #[test] fn test_invalid_auth_header() { // Malformed, should not parse. let value = http::HeaderValue::from_str("Bearer foo, Bearer bar").unwrap();...

As far as I know, all URI characters should be valid Header value characters, so we can have an infallible constructor for Location from an `Uri`. This doesn't cover all...

… for CacheControl header. I don't know why those accessor methods are missing. If it's not on purpose, here is a request to add them.

Currently the `TryFrom` implementation is the only way – as far as I can tell – to create an `AccessControlAllowOrigin` header for a specific origin. If you already have an...