For AI agents: the complete documentation index is available at /hclapi/llms.txt, the full documentation bundle is available at /hclapi/llms-full.txt, and this page is available as Markdown at /hclapi/docs/manifest/functions/encoding/url_decode.md.

url_decode

Unescapes a URL percent-encoded string.

Signature

url_decode(str: string) -> string

Parameters

ParameterTypeRequiredDescription
strstringyesThe URL encoded string to decode

Return value

Returns the documented result for the function signature.

Example

respond {
  status = 200
  body = { callback = url_decode(ctx.request.query.callback) }
}