src/VK/TransportClient/Curl/CurlHttpClient.php
protected function extractResponseHeadersAndBody(string $response) {
        $parts = explode("\r\n\r\n", $response);
        $raw_body = array_pop($parts);
        $raw_headers = implode("\r\n\r\n", $parts);

        return [trim($raw_headers), trim($raw_body)];
    }
protected function extractResponseHeadersAndBody(string $response) {
        $parts = explode("\r\n\r\n", $response);
        $raw_body = array_pop($parts);
        $raw_headers = implode("\r\n\r\n", $parts);

        return [trim($raw_headers), trim($raw_body)];
    }
protected function extractResponseHeadersAndBody ( string $ response ) { $ parts = explode ( "\r\n\r\n" , $ response ) ; $ raw_body = array_pop ( $ parts ) ; $ raw_headers = implode ( "\r\n\r\n" , $ parts ) ; return [ trim ( $ raw_headers ) , trim ( $ raw_body ) ] ; }
Extracts the headers and the body into a two-part array.

@param string $response

@return array
Extracts the headers and the body into a two - part array .