Requests::parse_response( string $headers, string $url, array $req_headers, array $req_data, array $options ): Requests_Response

In this article

HTTP response parser

Parameters

$headersstringrequired
Full response text including headers and body
$urlstringrequired
Original request URL
$req_headersarrayrequired
Original $headers array passed to request(), in case we need to follow redirects
$req_dataarrayrequired
Original $data array passed to request(), in case we need to follow redirects
$optionsarrayrequired
Original $options array passed to request(), in case we need to follow redirects

Return

Requests_Response

Source

User Contributed Notes

You must log in before being able to contribute a note or feedback.