aws/internal/uri
Percent-encoding helpers shared by SigV4 canonical-URI/query encoding and
by HTTP-form encoding in the STS Web Identity provider. Kept in its own
module so SigV4 and the STS provider can both depend on it without
creating an import cycle through aws/credentials.
Values
pub fn encode_component(s: String) -> String
Percent-encode a URI component, first decoding any pre-existing percent-escapes so callers can pass values that may or may not already be encoded.
pub fn encode_segment(s: String) -> String
Percent-encode a single URI path segment. RFC 3986 unreserved characters
(A-Za-z0-9-_.~) pass through; everything else becomes %HH.