Skip to main content

parse_presigned_params

Function parse_presigned_params 

Source
pub fn parse_presigned_params(input: &str) -> IResult<&str, PresignedParams>
Expand description

Parse all AWS presigned URL query parameters into a PresignedParams struct.

input must start with a ? (or be a bare query string without a leading ? — in that case the parser expects a full URL-like input and will attempt to locate the ? separator).

All X-Amz-* values are percent-decoded before being stored.

§Errors

Returns a nom error if any mandatory field (X-Amz-Algorithm, X-Amz-Credential, X-Amz-Date, X-Amz-Expires, X-Amz-SignedHeaders, X-Amz-Signature) is absent.