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 __RHTTPRESPONSE_H__
24 #define __RHTTPRESPONSE_H__
28 #include <http/rhttpmessage.h>
29 #include <stringpool.h>
32 //##ModelId=3A375D1203B5
33 class RHTTPResponse : public RHTTPMessage
35 An HTTP Response. This class extends the abstract HTTP Message to add an HTTP
36 version, a status code and status text.
43 Methods for reading information from the response.
47 Returns the status code
49 //##ModelId=3A914DF801B3
50 IMPORT_C TInt StatusCode() const;
51 /** Returns the status text, that is the text after the number on
52 the first line of the response. */
53 //##ModelId=3A914DF80195
54 IMPORT_C RStringF StatusText() const;
56 Returns the version of HTTP used by the server
58 //##ModelId=3A914DF80163
59 IMPORT_C TVersion Version() const;
63 Methods for setting information. These methods will not be of
64 use to the client; they are intended for the use of advanced
68 /** Sets the status code.
70 //##ModelId=3A3765310382
71 IMPORT_C void SetStatusCode(TInt aStatus);
72 /// Sets the status string
73 //##ModelId=3A914DF8019F
74 IMPORT_C void SetStatusText(RStringF aStatusString);
75 /// Sets the HTTP version
76 //##ModelId=3A914DF8016D
77 IMPORT_C void SetVersion(TVersion aVersion);
80 friend class CResponse;
85 #endif // __RHTTPRESPONSE_H__