headers
headers copied to clipboard
Typed HTTP Headers from hyper
The `Header` trait is now `Named`, `Decodable` and `Encodable`. The goal of this change is to make it possible to implement `Encodable` for borrowed types. Under the existing code, `Header::decode()`...
The removed code is no longer referenced anywhere. Remove it to keep the repository clean. This will additionally make it easier for contributors who are trying to understand which code...
headers has a _text_utf8_ constructor for ContentType. I suggest a _html_utf8_ constructor be added, as well, resulting in ``` Content-Type: text/html; charset=utf-8 ``` Motivation: If the charset is not set...
This PR creates a new version of the `AcceptEncoding` header which is built on top of a new struct `QualityValue` and enum `ContentCoding` `QualityValue` is a wrapper around `FlatCsv` that...
The `Connection` header lets me test if it contains specific "connection options"[^1] are contained in it. But it doesn't let me actually iterate its contents to see what it contains....
Upgrading to HTTP/2.0 is common enough that I feel it should get its own constructor. Because the client can send values other than "websocket" as a request header, I feel...
I'm working on https://github.com/seanmonstar/warp/issues/770 and noticed this is missing.
fixes #87 I'm very much not happy with it as it is right now, but this is what I've been able to hack together so far. I'm still posting it...
So you can get the value out 😇 I just copied the implementation from the `UserAgent` type.
Please add typed support for Content-Language headers. I saw there is some implementation in [src/disabled](https://github.com/hyperium/headers/tree/master/src/disabled) but I assume this was not specific enough?