1
2
3
4
5
6
7
8
9
10
11
12
13
14
/*
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * SPDX-License-Identifier: Apache-2.0
 */

use aws_smithy_http::{label, query};

pub(super) fn percent_encode_query(value: &str) -> String {
    query::fmt_string(value)
}

pub(super) fn percent_encode_path(value: &str) -> String {
    label::fmt_string(value, label::EncodingStrategy::Greedy)
}