http-rs / http-types

Common types for HTTP operations
https://docs.rs/http-types
Apache License 2.0
200 stars 83 forks source link

Add `BasicAuth::from_credentials` #284

Closed rossmacarthur closed 3 years ago

rossmacarthur commented 3 years ago

If you already have an Authorization instance this allows you to construct a BasicAuth using it without parsing an Authorization from the headers again.