Skip to content

Commit e6647aa

Browse files
authored
Merge pull request #1444 from mikeyhew/docs-basic-fromstr
docs(headers): document the fact that <Basic as FromStr>::from_str takes a base-64 encoded string
2 parents 77adab4 + ba6fcf3 commit e6647aa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/header/common/authorization.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ impl Scheme for Basic {
167167
}
168168
}
169169

170+
/// creates a Basic from a base-64 encoded, `:`-delimited utf-8 string
170171
impl FromStr for Basic {
171172
type Err = ::Error;
172173
fn from_str(s: &str) -> ::Result<Basic> {

0 commit comments

Comments
 (0)