[−][src]Function gotham_middleware_aws_sig_verify::normalize_uri_path_component
pub fn normalize_uri_path_component(
path_component: &str
) -> Result<String, SignatureError>
Re-export aws_sig_verify so users don't have to compute versions. Normalize the path component according to RFC 3986. This performs the following operations:
- Alpha, digit, and the symbols
-
,.
,_
, and~
(unreserved characters) are left alone. - Characters outside this range are percent-encoded.
- Percent-encoded values are upper-cased (
%2a
becomes%2A
) - Percent-encoded values in the unreserved space (
%41
-%5A
,%61
-%7A
,%30
-%39
,%2D
,%2E
,%5F
,%7E
) are converted to normal characters.
If a percent encoding is incomplete, an error is returned.