headers icon indicating copy to clipboard operation
headers copied to clipboard

Typed HTTP Headers from hyper

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

I feel like I'm missing something obvious here. The `ContentLocation` struct has a private field, so can't be directly constructed. It's also got no `new()` method and doesn't seem to...

This is another impl of Accept-Encoding, no addtional deps and types compare with https://github.com/hyperium/headers/pull/70.

Implements `Display` for `Expires`.

Gave some love to the `Referer` header while respecting RFC7231 spec. ### Usage ```rust let referer = Referer::from_str("https://example.com:8443/api/users?page=1").unwrap(); assert_eq!(referer.scheme(), Some("https")); assert_eq!(referer.hostname(), Some("example.com")); assert_eq!(referer.path(), "/api/users"); assert_eq!(referer.query(), Some("page=1")); ```

The `link` module is currently located in the `./src/disabled` directory. The content of this directory is not mounted as a module in the crate source, so it is not compiled...

The `Link` header, defined in [RFC5988](https://datatracker.ietf.org/doc/html/rfc5988#section-5). It was supported in older versions, but was since then disabled in a514a37073b9fc19bde1fe00ee58d599e8c67c0d. There were a few attempts to reenable the `Link` header, but...

This API would be useful when *full* value of the header is needed (to log it somewhere, for example). Currently, there's only `Authorization::::token` which doesn't specify that the token is...

The [Fetch CORS spec](https://fetch.spec.whatwg.org/#cors-preflight-fetch) specifically notes that the header list that is the value of ACRH does not use `combine` and only uses `,` (comma) to join the header names....

easy

I noticed there is a "disabled" implementation for `Accept-Language`. What is needed to get this into a usable state?

```rust use headers::{IfNoneMatch, Header}; #[test] fn test_empty_if_none_match() { let mut iter = std::iter::empty(); let if_none_match = IfNoneMatch::decode(&mut iter); assert!(if_none_match.is_err()); // This assert fails. `decode` returns `Ok(IfNoneMatch(Tags("")))` } ``` This means...