init: import production code mss.nahaichuan.com (exclude Runtime/Uploads/backups/logs)

这个提交包含在:
Developer
2026-10-30 10:18:50 +08:00
当前提交 1f3e0ce2f6
共有 9291 个文件被更改,包括 1776674 次插入 和 0 次删除

查看文件

@@ -0,0 +1,24 @@
==============
History plugin
==============
The history plugin tracks all of the requests and responses sent through a request or client. This plugin can be
useful for crawling or unit testing. By default, the history plugin stores up to 10 requests and responses.
.. code-block:: php
use Guzzle\Http\Client;
use Guzzle\Plugin\History\HistoryPlugin;
$client = new Client('http://www.test.com/');
// Add the history plugin to the client object
$history = new HistoryPlugin();
$history->setLimit(5);
$client->addSubscriber($history);
$client->get('http://www.yahoo.com/')->send();
echo $history->getLastRequest();
echo $history->getLastResponse();
echo count($history);