src/VCR/Util/HttpUtil.php
public static function parseResponse($response)
    {
        $response = str_replace("HTTP/1.1 100 Continue\r\n\r\n", '', $response);
            
        list($rawHeader, $rawBody) = explode("\r\n\r\n", $response, 2);

        // Parse headers and status.
        $headers = self::parseRawHeader($rawHeader);
        $status = array_shift($headers);

        return array($status, $headers, $rawBody);
    }
public static function parseResponse($response)
    {
        $response = str_replace("HTTP/1.1 100 Continue\r\n\r\n", '', $response);
            
        list($rawHeader, $rawBody) = explode("\r\n\r\n", $response, 2);

        // Parse headers and status.
        $headers = self::parseRawHeader($rawHeader);
        $status = array_shift($headers);

        return array($status, $headers, $rawBody);
    }
public static function parseResponse ( $ response ) { $ response = str_replace ( "HTTP/1.1 100 Continue\r\n\r\n" , '' , $ response ) ; list ( $ rawHeader , $ rawBody ) = explode ( "\r\n\r\n" , $ response , 2 ) ; // Parse headers and status. $ headers = self :: parseRawHeader ( $ rawHeader ) ; $ status = array_shift ( $ headers ) ; return array ( $ status , $ headers , $ rawBody ) ; }
Returns status, headers and body from a HTTP response string.

@param string $response Response including header and body.
@return array Status, headers and body as strings.
Returns status headers and body from a HTTP response string .