src/Parser/ResponseParser.php
public static function convert($content, $mode = ParserAbstract::MODE_STRICT)
    {
        $parser = new self($mode);

        return $parser->parse($content);
    }
public static function convert($content, $mode = ParserAbstract::MODE_STRICT)
    {
        $parser = new self($mode);

        return $parser->parse($content);
    }
public static function convert ( $ content , $ mode = ParserAbstract :: MODE_STRICT ) { $ parser = new self ( $ mode ) ; return $ parser -> parse ( $ content ) ; }
Parses an raw http response into an PSX\Http\Response object. Throws an
exception if the response has not an valid format

@param string $content
@param integer $mode
@return \PSX\Http\ResponseInterface
@throws \PSX\Http\Parser\ParseException
Parses an raw http response into an PSX \ Http \ Response object . Throws an exception if the response has not an valid format