pub fn ash_normalize_binding(
method: &str,
path: &str,
) -> Result<String, JsValue>Expand description
Normalize a binding string to canonical form.
Bindings are in the format: “METHOD /path”
§Normalization Rules
- Method uppercased
- Path starts with /
- Query string excluded
- Duplicate slashes collapsed
- Trailing slash removed
@param method - HTTP method (GET, POST, etc.) @param path - URL path @returns Canonical binding string @throws Error if method is empty or path doesn’t start with /