1 2 3 4 5 6
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. pub fn url_encode(s: impl AsRef<[u8]>) -> String { url::form_urlencoded::byte_serialize(s.as_ref()).collect::<String>() }