Skip to content

Commit

Permalink
docs(headers): add docs to Origin::new
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmonstar committed Jul 13, 2016
1 parent 58e217d commit 8696b8b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/header/common/origin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ pub struct Origin {
}

impl Origin {
/// Creates a new `Origin` header.
pub fn new<S: Into<String>, H: Into<String>>(scheme: S, hostname: H, port: Option<u16>) -> Origin{
Origin {
scheme: scheme.into(),
Expand Down

0 comments on commit 8696b8b

Please sign in to comment.