protected function parseMessage($message)
    {
        $headerAndBody = explode("\r\n\r\n", $message, 2);
        $headers = explode("\r\n", $headerAndBody[0]);

        return [$this->parseHeader($headers), $headerAndBody[1]];

    }
protected function parseMessage($message)
    {
        $headerAndBody = explode("\r\n\r\n", $message, 2);
        $headers = explode("\r\n", $headerAndBody[0]);

        return [$this->parseHeader($headers), $headerAndBody[1]];

    }
protected function parseMessage ( $ message ) { $ headerAndBody = explode ( "\r\n\r\n" , $ message , 2 ) ; $ headers = explode ( "\r\n" , $ headerAndBody [ 0 ] ) ; return [ $ this -> parseHeader ( $ headers ) , $ headerAndBody [ 1 ] ] ; }
Splits the received message in header and body.

@param string $message
@return array
Splits the received message in header and body .