http-basic-auth 0.1.0

HTTP Basic Authentication support according to IETF RFC 7617
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#[derive(Debug, PartialEq)]
pub enum ParseError {
    Scheme,
    Decode,
    Format
}

impl From<base64::DecodeError> for ParseError {
    fn from(_: base64::DecodeError) -> Self {
	ParseError::Decode
    }
}

impl From<std::str::Utf8Error> for ParseError {
    fn from(_: std::str::Utf8Error) -> Self {
	ParseError::Decode
    }
}