©
이 문서에서는 PHP 중국어 웹사이트 매뉴얼 풀어 주다
(PECL pecl_http >= 0.15.0)
HttpRequest::getHistory — Get history
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.