docs(headers): clarify Basic auth

See https://tools.ietf.org/html/rfc7617
This commit is contained in:
jethrogb
2017-07-31 09:05:05 -07:00
committed by GitHub
parent 4922bb9d18
commit fcbad58924

View File

@@ -140,7 +140,8 @@ pub struct Basic {
/// The username as a possibly empty string
pub username: String,
/// The password. `None` if the `:` delimiter character was not
/// part of the parsed input.
/// part of the parsed input. Note: A compliant client MUST
/// always send a password (which may be the empty string).
pub password: Option<String>
}