-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
699bb7a
commit 80ee8b2
Showing
3 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
type Type = http::uri::PathAndQuery; | ||
const EXPECT_MESSAGE: &str = "valid path and query"; | ||
|
||
serialize_str!(Type); | ||
create_visitor!( | ||
Visitor, | ||
Type, | ||
EXPECT_MESSAGE, | ||
(visit_str, &str), | ||
(visit_string, String) | ||
); | ||
deserialize_string!(Visitor, Type); | ||
|
||
derive_extension_types!(super::Type); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
type Type = http::uri::Scheme; | ||
const EXPECT_MESSAGE: &str = "valid scheme"; | ||
|
||
serialize_str!(Type); | ||
create_visitor!(Visitor, Type, EXPECT_MESSAGE, (visit_str, &str)); | ||
deserialize_str!(Visitor, Type); | ||
|
||
derive_extension_types!(super::Type); |