X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=http%2FMessage.md;h=ca48ff2ae7d677511f429025f0e7f81f19e05cbd;hb=e359e7e44da8a67342f66de9345bca9b7037cf3f;hp=ce7603dc94046939c4bb3d67a67073e2c9431702;hpb=525965cefca5e29e7941b9377f199b0729410d93;p=mdref%2Fmdref diff --git a/http/Message.md b/http/Message.md index ce7603d..ca48ff2 100644 --- a/http/Message.md +++ b/http/Message.md @@ -1 +1,35 @@ -# class http\Message extends http\Object implements Countable, Serializable, Iterator +# class http\Message implements Countable, Serializable, Iterator + +The message class builds the foundation for any request and response message. +See http\Client\Request and http\Client\Response, as well as http\Env\Request and http\Env\Response. + +## Constants: + +* TYPE_NONE + No specific type of message. +* TYPE_REQUEST + A request message. +* TYPE_RESPONSE + A response message. + +## Properties: + +* protected int $type = http\Message::TYPE_NONE + The message type. See http\Message::TYPE_* constants. +* protected http\Message\Body $body = NULL + The message's body. +* protected string $requestMethod = "" + The request method if the message is of type request. +* protected string $requestUrl = "" + The request url if the message is of type request. +* protected string $responseStatus = "" + The respose status phrase if the message is of type response. +* protected int $responseCode = 0 + The response code if the message is of type response. +* protected string $httpVersion = NULL + A custom HTTP protocol version. +* protected array $headers = NULL + Any message headers. +* protected http\Message $parentMessage + Any parent message. +