The response body can be written to a file, returned, echoed or
passed to a custom function.
The response header might be passed to a custom function.
public static handleOutput ( |
||
$response | Response which contains the response body. | |
$curlOptions | array | cURL options which are not stored within the Response. |
$ch | resource | cURL handle to add headers if needed. |
return | null | string |