messagesign
A rust library to sign requests to mehal services based on the AWS S3V4 approach.
The implementation is based on the s3v4 library.
This crate provides a signature
function that can be used to sign a request to an mehal services.
Both functions return an Error
generated by the error_chain
crate which can be
converted to a String
or accessed through the description
method or display_chain
and backtrace
methods in case a full backtrace is needed.
Examples
Signing a request
let url = parse.unwrap;
let signature: Signature = signature.map_err?;
Using the signature data to make a request
Hyper
let req = builder
.method
.header
.header
.header
.header
Ureq
let agent = new.build;
let response = agent
.put
.set
.set
.set
.set