Skip to main content

validate_endpoint_path

Function validate_endpoint_path 

Source
pub fn validate_endpoint_path(path: &str) -> Result<(), Error>
Expand description

Validates an endpoint path.

A path MUST start with /, be 1..=MAX_PATH_BYTES bytes long and contain no byte below 0x20. Every other byte sequence is accepted: the path is an opaque identifier, so *, .. and %20 carry no meaning here.