Ergo\Http\Request::__construct PHP Method

__construct() public method

public __construct ( string $method, Url $url, $headers = [], $body = null )
$method string
$url Url
    public function __construct($method, $url, $headers = array(), $body = null)
    {
        $this->_method = $method;
        $this->_url = is_string($url) ? new Url($url) : $url;
        $this->_headers = new HeaderCollection($headers);
        $this->_body = $body;
    }