HttpRequest
在线手册:中文  英文

HttpRequest::getHistory

(PECL pecl_http >= 0.15.0)

HttpRequest::getHistoryGet history

说明

public HttpMessage HttpRequest::getHistory ( void )

Get all sent requests and received responses as an HttpMessage object.

If you want to record history, set the instance variable HttpRequest::recordHistory to TRUE.

The returned object references the last received response, use HttpMessage::getParentMessage() to access the data of previously sent requests and received responses.

返回值

Returns an HttpMessage object representing the complete request/response history.

错误/异常

Throws HttpRuntimeException.


HttpRequest
在线手册:中文  英文
易百教程