Expand description
A Cloud Storage signature utils
§HTML Form Data
HtmlFormData
is a struct that represents a form data for a POST request
to upload an object to Google Cloud Storage.
https://cloud.google.com/storage/docs/xml-api/post-object-forms
use cloud_storage_signature::HtmlFormData;
assert_eq!(
HtmlFormData::builder()
.key("object_name1")
.build()
.await?
.into_vec(),
vec![("key".to_string(), "object_name1".to_string())]
);
This form data does not include the file
field, so you need to add the file
field to upload a file.
See image-uploader example.
Re-exports§
pub use self::html_form_data::HtmlFormData;
pub use self::html_form_data::HtmlFormDataBuilder;
pub use self::html_form_data::PolicyDocumentSigningOptions;
pub use self::signed_url::build_signed_url;
pub use self::signed_url::BuildSignedUrlOptions;
pub use self::signing_key::SigningKey;