protected function getRequest($method, $url) {
		$this->queryParams = array();
		
		$request = \Httpful\Request::$method($url);
		$request->sendsJson();
		$request->expectsJson();
		$request->addHeader('User-Agent', $this->identity);

		$ip = $this->getClientIp();

		if ($ip)
			$request->addHeader('Client-IP', $ip);
		
		return $request;
	}
protected function getRequest($method, $url) {
		$this->queryParams = array();
		
		$request = \Httpful\Request::$method($url);
		$request->sendsJson();
		$request->expectsJson();
		$request->addHeader('User-Agent', $this->identity);

		$ip = $this->getClientIp();

		if ($ip)
			$request->addHeader('Client-IP', $ip);
		
		return $request;
	}
protected function getRequest ( $ method , $ url ) { $ this -> queryParams = array ( ) ; $ request = \ Httpful \ Request :: $ method ( $ url ) ; $ request -> sendsJson ( ) ; $ request -> expectsJson ( ) ; $ request -> addHeader ( 'User-Agent' , $ this -> identity ) ; $ ip = $ this -> getClientIp ( ) ; if ( $ ip ) $ request -> addHeader ( 'Client-IP' , $ ip ) ; return $ request ; }
Create \Httpful\Request instance.
@param string $method HTTP method
@param string $url
Create \ Httpful \ Request instance .