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

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

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

@param string $content
@param \PSX\Uri\Url $baseUrl
@param integer $mode
@return \PSX\Http\RequestInterface
@throws \PSX\Http\Parser\ParseException
Parses an raw http request into an PSX \ Http \ Request object . Throws an exception if the request has not an valid format