private function method($url, $closure, $method) {
			
		if(false === is_string($url)) {
			return trigger_error(sprintf('Argument 1 passed to %s() must be of the type string, "%s" given', __METHOD__, gettype($url)), E_USER_ERROR);
		}

		if(false === is_string($method)) {
			return trigger_error(sprintf('Argument 3 passed to %s() must be of the type string, "%s" given', __METHOD__, gettype($method)), E_USER_ERROR);
		}

		$this -> method = $method;
		$this -> url 	= new URLParser($url);
		$this -> options[CURLOPT_CUSTOMREQUEST] = strtoupper($method);

		if(is_object($closure)) {
			call_user_func($closure, $this);
		}

		$this -> send();

		return $this;
	}
private function method($url, $closure, $method) {
			
		if(false === is_string($url)) {
			return trigger_error(sprintf('Argument 1 passed to %s() must be of the type string, "%s" given', __METHOD__, gettype($url)), E_USER_ERROR);
		}

		if(false === is_string($method)) {
			return trigger_error(sprintf('Argument 3 passed to %s() must be of the type string, "%s" given', __METHOD__, gettype($method)), E_USER_ERROR);
		}

		$this -> method = $method;
		$this -> url 	= new URLParser($url);
		$this -> options[CURLOPT_CUSTOMREQUEST] = strtoupper($method);

		if(is_object($closure)) {
			call_user_func($closure, $this);
		}

		$this -> send();

		return $this;
	}
private function method ( $ url , $ closure , $ method ) { if ( false === is_string ( $ url ) ) { return trigger_error ( sprintf ( 'Argument 1 passed to %s() must be of the type string, "%s" given' , __METHOD__ , gettype ( $ url ) ) , E_USER_ERROR ) ; } if ( false === is_string ( $ method ) ) { return trigger_error ( sprintf ( 'Argument 3 passed to %s() must be of the type string, "%s" given' , __METHOD__ , gettype ( $ method ) ) , E_USER_ERROR ) ; } $ this -> method = $ method ; $ this -> url = new URLParser ( $ url ) ; $ this -> options [ CURLOPT_CUSTOMREQUEST ] = strtoupper ( $ method ) ; if ( is_object ( $ closure ) ) { call_user_func ( $ closure , $ this ) ; } $ this -> send ( ) ; return $ this ; }
Sets the method and url and executes a user closure function if given
@param string $url
@param object $closure
@param string $method
@return sFire\HTTP\Client
Sets the method and url and executes a user closure function if given