Sign GET request to other instances

This commit is contained in:
Kitaiti Makoto
2021-12-05 19:32:27 +09:00
parent c525410062
commit f4d7dfb261
9 changed files with 66 additions and 15 deletions
+2 -2
View File
@@ -118,8 +118,8 @@ type Path<'a> = &'a str;
type Query<'a> = &'a str;
type RequestTarget<'a> = (Method<'a>, Path<'a>, Option<Query<'a>>);
pub fn signature<S: Signer>(
signer: &S,
pub fn signature(
signer: &dyn Signer,
headers: &HeaderMap,
request_target: RequestTarget,
) -> Result<HeaderValue, Error> {