This crate provides a Rust implementation for parsing the WWW-Authenticate HTTP header. The parser supports extracting authentication schemes and their associated challenges as defined by RFC 7235.
- Parses a single
WWW-Authenticateheader string into an authentication scheme and its challenge. - Supports token68 and fields formats in challenges.
- Case-insensitive scheme handling using
UniCase. - Correctly handles quoted strings and token characters according to the HTTP specification.
This crate is a modified version of KeenS/www-authenticate.