Function opendal::raw::percent_encode_path

source ยท
pub fn percent_encode_path(path: &str) -> String
Expand description

percent_encode_path will do percent encoding for http encode path.

Follows encodeURIComponent which will encode all non-ASCII characters except A-Z a-z 0-9 - _ . ! ~ * ' ( )

There is a special case for / in path: we will allow / in path as required by storage services like s3.