curl_escape()
function curl_escape(CurlHandle $handle, string $string): string
URL-encodes a string with the given cURL handle.
Parameters:
$handle(CurlHandle)$string(string)
Returns: string
Availability
- Compiled (AOT): supported through the compiler-injected curl prelude.
eval()(magician interpreter): supported — declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/curl/curl_escape.rs).
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how curl_escape is implemented in the compiler, see the internals page.