|
|
|
Location:
http\rhttpmessage.h
Link against: http.lib
class RHTTPMessage
Supported from 7.0
A message: this is the base class for requests and responses.
Message is the HTTP terminology for data exchanged between client and server, specifically being either a request or response.
A message is made up of a body and a collection of headers. The body is supplied by a MHTTPDataSupplier object, which will then return the data in one or more chunks on request.
Defined in RHTTPMessage:
Body(), GetHeaderCollection(), HasBody(), RHTTPMessage(), RemoveBody(), SetBody(), iImplementation
RHTTPHeaders GetHeaderCollection();
Gets the header collection for the message.
|
void SetBody(MHTTPDataSupplier& aBody);
Sets the message's body, replacing any existing body.
|
TBool HasBody() const;
Tests if this message has any associated body data.
|
MHTTPDataSupplier* Body() const;
Gets the body.
The body is supplied as an MHTTPDataSupplier, which can be used to return the current data chunk, and to acknowledge when that chunk has been consumed by the client. Note that the client can assume the body object will remain unchanged from when it receives the first data until the end of the transaction.
|
protected: CMessage* iImplementation;
This is internal and not intended for use.