1 # class http\Message implements Countable, Serializable, Iterator
3 The message class builds the foundation for any request and response message.
5 See http\Client\Request and http\Client\Response, as well as http\Env\Request and http\Env\Response.
10 No specific type of message.
18 * protected int $type = http\Message::TYPE_NONE
19 The message type. See http\Message::TYPE_* constants.
20 * protected http\Message\Body $body = NULL
22 * protected string $requestMethod = ""
23 The request method if the message is of type request.
24 * protected string $requestUrl = ""
25 The request url if the message is of type request.
26 * protected string $responseStatus = ""
27 The respose status phrase if the message is of type response.
28 * protected int $responseCode = 0
29 The response code if the message is of type response.
30 * protected string $httpVersion = NULL
31 A custom HTTP protocol version.
32 * protected array $headers = NULL
34 * protected http\Message $parentMessage