Create Header Callback
Gather headers and parse cookies as response headers are received. Keep this function separate from the class so that unset($curl) automatically calls __destruct() as expected. Otherwise, manually calling $curl->close() will be necessary to prevent a memory leak.
| Parameters | |||
|---|---|---|---|
|  | $header_callback_data | # | |
| Returns | |
|---|---|
| callable | |