Struct aws_sdk_rust::aws::common::signature::SignedRequest [] [src]

pub struct SignedRequest<'a> {
    // some fields omitted
}

A data structure for all the elements of an HTTP request that are involved in the Amazon Signature Version 4 signing process

Methods

impl<'a> SignedRequest<'a>
[src]

fn new(method: &str, service: &str, region: Region, path: &str) -> SignedRequest<'a>

Default constructor

fn set_content_type(&mut self, content_type: String)

fn set_hostname(&mut self, hostname: Option<String>)

fn set_endpoint_prefix(&mut self, endpoint_prefix: String)

fn set_payload(&mut self, payload: Option<&'a [u8]>)

fn method(&self) -> &str

fn path(&self) -> &str

fn canonical_uri(&self) -> &str

fn canonical_query_string(&self) -> &str

fn payload(&self) -> Option<&'a [u8]>

fn headers(&'a self) -> &'a BTreeMap<StringVec<Vec<u8>>>

fn hostname(&self) -> String

fn remove_header(&mut self, key: &str)

fn add_header(&mut self, key: &str, value: &str)

Add a value to the array of headers for the specified key. Headers are kept sorted by key name for use at signing (BTreeMap)

fn add_param<S>(&mut self, key: S, value: S) where S: Into<String>

fn set_params(&mut self, params: Params)

fn sign(&mut self, creds: &AwsCredentials)

Trait Implementations

impl<'a> Debug for SignedRequest<'a>
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.