http.url.escape

http.url

escape(s) -> encoded

Percent-encode a string per RFC 3986

Replaces every byte that is not in the RFC 3986 unreserved set (A-Z a-z 0-9 - . _ ~) with its %XX hex-encoded form. This is not application/x-www-form-urlencoded encoding (spaces become %20, not +).