mirror of
https://git.asonix.dog/asonix/http-signature-normalization.git
synced 2024-11-25 02:41:00 +00:00
Alter type specification in client example
This commit is contained in:
parent
686e52213e
commit
9c24eb5566
1 changed files with 2 additions and 2 deletions
|
@ -14,12 +14,12 @@ fn main() {
|
||||||
Client::default()
|
Client::default()
|
||||||
.post("http://127.0.0.1:8010/")
|
.post("http://127.0.0.1:8010/")
|
||||||
.header("User-Agent", "Actix Web")
|
.header("User-Agent", "Actix Web")
|
||||||
.authorization_signature_with_digest::<_, MyError, _, _, _>(
|
.authorization_signature_with_digest(
|
||||||
&config,
|
&config,
|
||||||
"my-key-id",
|
"my-key-id",
|
||||||
&mut digest,
|
&mut digest,
|
||||||
"Hewwo-owo",
|
"Hewwo-owo",
|
||||||
|s| Ok(base64::encode(s)),
|
|s| Ok(base64::encode(s)) as Result<_, MyError>,
|
||||||
)
|
)
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.send()
|
.send()
|
||||||
|
|
Loading…
Reference in a new issue