Attempt to represent the S^2->S^3 header reorganisation as a series of "hg rename" operations
1 // Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
20 @warning : This file contains Rose Model ID comments - please do not delete
23 #ifndef __RHTTPMESSAGE_H__
24 #define __RHTTPMESSAGE_H__
26 // Forward declarations
28 class MHTTPDataSupplier;
32 //##ModelId=3A375D1F0377
35 An abstract HTTP message. In RFC2616, an HTTP message is defined as having a
36 header and an optional body. This class is specialised for HTTP requests and
43 /// Default (uninitialised) constructor.
44 //##ModelId=3A375DD60140
45 inline RHTTPMessage();
47 /** Returns the header collection for the message */
48 //##ModelId=3A375DDE0368
49 IMPORT_C RHTTPHeaders GetHeaderCollection();
51 /** Sets the messages body, replacing any existing body. The body
52 is supplied as a MHTTPDataSupplier, which will then return the
53 data in 1 or more chunks on request.
54 @param aBody The data supplier that will supply the body. */
55 //##ModelId=3A375DE0019E
56 IMPORT_C void SetBody(MHTTPDataSupplier& aBody);
58 /** Removes the body */
59 //##ModelId=3B1E66FF004E
60 IMPORT_C void RemoveBody();
62 /** Determine whether this message has any associated body data.
63 @return ETrue if there is some body data, EFalse if not.
65 //##ModelId=3A914DFF01E5
66 IMPORT_C TBool HasBody() const;
68 /** Gets the body. The body is supplied as a MHTTPDataSupplier,
69 which can be used to return the current data chunk, and to
70 acknowledge when that chunk has been consumed by the client.
72 Note that the client can assume the body object will remain
73 unchanged from when it receives the first data until the end
76 @return A data supplier that provides access to a body
77 data chunk. NULL if the body has not been set, or has been removed */
78 //##ModelId=3A375DE40190
79 IMPORT_C MHTTPDataSupplier* Body() const;
82 //##ModelId=3A914DFF01C7
83 CMessage* iImplementation;
87 inline RHTTPMessage::RHTTPMessage()
88 : iImplementation(NULL)
93 #endif // __RHTTPMESSAGE_H__