curl_copy_handle()
function curl_copy_handle(CurlHandle $handle): CurlHandle
Copies a cURL handle along with all of its preferences.
Parameters:
$handle(CurlHandle)
Returns: CurlHandle
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_copy_handle.rs).
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how curl_copy_handle is implemented in the compiler, see the internals page.