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<String, Vec<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)