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 "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
18 @warning : This file contains Rose Model ID comments - please do not delete
21 #ifndef __RHTTPRESPONSE_H__
22 #define __RHTTPRESPONSE_H__
26 #include <http/rhttpmessage.h>
27 #include <stringpool.h>
30 //##ModelId=3A375D1203B5
31 class RHTTPResponse : public RHTTPMessage
33 An HTTP Response. This class extends the abstract HTTP Message to add an HTTP
34 version, a status code and status text.
41 Methods for reading information from the response.
45 Returns the status code
47 //##ModelId=3A914DF801B3
48 IMPORT_C TInt StatusCode() const;
49 /** Returns the status text, that is the text after the number on
50 the first line of the response. */
51 //##ModelId=3A914DF80195
52 IMPORT_C RStringF StatusText() const;
54 Returns the version of HTTP used by the server
56 //##ModelId=3A914DF80163
57 IMPORT_C TVersion Version() const;
61 Methods for setting information. These methods will not be of
62 use to the client; they are intended for the use of advanced
66 /** Sets the status code.
68 //##ModelId=3A3765310382
69 IMPORT_C void SetStatusCode(TInt aStatus);
70 // Sets the status string
71 //##ModelId=3A914DF8019F
72 IMPORT_C void SetStatusText(RStringF aStatusString);
73 // Sets the HTTP version
74 //##ModelId=3A914DF8016D
75 IMPORT_C void SetVersion(TVersion aVersion);
78 friend class CResponse;
83 #endif // __RHTTPRESPONSE_H__