diff --git a/Cargo.toml b/Cargo.toml index e8a555ae..d8da24d4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,7 +6,7 @@ documentation = "https://docs.rs/reqsign" edition = "2021" license = "Apache-2.0" name = "reqsign" -version = "0.0.5" +version = "0.1.0" [package.metadata.docs.rs] all-features = true diff --git a/README.md b/README.md index 64d4af8d..ab299f05 100644 --- a/README.md +++ b/README.md @@ -23,11 +23,12 @@ async fn main() -> Result<()>{ // Signer will load region and credentials from environment by default. let signer = Signer::builder().service("s3").build()?; // Construct request - let url = Url::parse( "https://s3.amazonaws.com/testbucket")?; + let url = Url::parse("https://s3.amazonaws.com/testbucket")?; let mut req = reqwest::Request::new(http::Method::GET, url); + // Signing request with Signer signer.sign(&mut req)?; - + // Sending already signed request. let resp = Client::new().execute(req).await?; println!("resp got status: {}", resp.status());