X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=http%2FMessage.md;h=cdb4c30e634965a6e934e3a9b4aa6007b938cb69;hb=38ba1c26cfc9bc075be2173cadad4137a7879b32;hp=ce7603dc94046939c4bb3d67a67073e2c9431702;hpb=b58f881f1bfba679372b1cf51d14228a00ab22d1;p=mdref%2Fmdref-http diff --git a/http/Message.md b/http/Message.md index ce7603d..cdb4c30 100644 --- a/http/Message.md +++ b/http/Message.md @@ -1 +1,35 @@ # class http\Message extends http\Object 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. +