Escapes characters in a string to make it safe for inclusion inside a URL query parameter.
url_encode(str: string) -> string
Returns the documented result for the function signature.
respond { status = 302 headers = { "Location" = "https://idp.example.com/oauth?redirect_uri=${url_encode(ctx.request.query.callback)}" } }