本文整理汇总了PHP中Zend_Http_Client_Adapter_Test::write方法的典型用法代码示例。如果您正苦于以下问题:PHP Zend_Http_Client_Adapter_Test::write方法的具体用法?PHP Zend_Http_Client_Adapter_Test::write怎么用?PHP Zend_Http_Client_Adapter_Test::write使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Zend_Http_Client_Adapter_Test
的用法示例。
在下文中一共展示了Zend_Http_Client_Adapter_Test::write方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: write
public function write($method, $uri, $http_ver = '1.1', $headers = array(), $body = '')
{
$request = new Test_Zend_Gdata_MockHttpClient_Request();
$request->method = $method;
$request->uri = $uri;
$request->http_ver = $http_ver;
$request->headers = $headers;
$request->body = $body;
array_push($this->_requests, $request);
return parent::write($method, $uri, $http_ver, $headers, $body);
}
示例2: write
public function write($method, $uri, $http_ver = '1.1', $headers = array(), $body = '')
{
$this->requestLog[] = $uri;
return parent::write($method, $uri, $http_ver, $headers, $body);
}
示例3: write
/**
* See {@link Zend_Http_Client_Adapter_Interface::write()} for details.
*
* @param string $method
* @param Zend_Uri_Http $uri
* @param string $httpVersion
* @param array $headers
* @param string $body
* @return string
*/
public function write($method, $uri, $httpVersion = '1.1', $headers = array(), $body = '')
{
$request = parent::write($method, $uri, $httpVersion, $headers, $body);
$this->requestedUri = $this->normalizeUri($uri);
return $request;
}