process_response() public method

Take the post-processed cURL data and break it down into useful header/body/info chunks. Uses the data stored in the curl_handle and response properties unless replacement data is passed in via parameters.
public process_response ( resource $curl_handle = null, string $response = null ) : OSS\Http\ResponseCore
$curl_handle resource (Optional) The reference to the already executed cURL request.
$response string (Optional) The actual response content itself that needs to be parsed.
return OSS\Http\ResponseCore A object containing a parsed HTTP response.
 public function testParseResponse()
 {
     $httpCore = new RequestCore("http://www.baidu.com");
     $response = $httpCore->send_request();
     $parsed = $httpCore->process_response(null, $response);
     $this->assertNotNull($parsed);
 }