Наша группа в телеграмм для обмена идеями, проектами, мыслями, людьми в сфере ИТ г.Ростова-на-Дону: @it_rostov

HttpRequest::getRequestMessage

(PECL pecl_http >= 0.11.0)

HttpRequest::getRequestMessage — Get request message


Описание

public HttpMessage HttpRequest::getRequestMessage ( void )

Get sent HTTP message.

If redirects were allowed and several responses were received, the data references the last received response. Use HttpMessage::getParentMessage() to access the data of previously sent requests within this request cycle.

Замечание:

Note that the internal request message is immutable, that means that the request message received through HttpRequest::getRequestMessage() will always look the same for the same request, regardless of any changes you may have made to the returned object.


Возвращаемые значения

Returns an HttpMessage object representing the sent request.


Ошибки

Throws HttpMalformedHeadersException, HttpEncodingException.


Описание класса httprequest, примеры использования класса httprequest.



Смотрите также:
Описание на ru2.php.net
Описание на php.ru

.

Популярное:


Содержание: