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 __RHTTPREQUEST_H__
22 #define __RHTTPREQUEST_H__
26 #include <stringpool.h>
27 #include <http/rhttpmessage.h>
30 //##ModelId=3C4C186E0191
31 class RHTTPRequest : public RHTTPMessage
33 An HTTP Request. This class extends the abstract HTTP Message to add an HTTP
34 method to be invoked on the resource at the remote HTTP server, and the URL that
35 identifies that resource.
42 Methods for reading information from the response.
45 // Gets the method name
46 // @return The method to be used in the HTTP request.
47 //##ModelId=3C4C186E01B3
48 IMPORT_C RStringF Method() const;
50 // @return The URI to be used in the HTTP request.
51 //##ModelId=3C4C186E01B2
52 IMPORT_C const TUriC8& URI() const;
56 Methods for setting information. These methods will not be of
57 use to the client; they are intended for the use of advanced
61 // Sets the method name
62 // @param aMethod The method name to be used in the HTTP request.
63 //##ModelId=3C4C186E01B0
64 IMPORT_C void SetMethod(RStringF aMethod);
66 // @param aURI The URI to be used in the HTTP request.
67 //##ModelId=3C4C186E01A6
68 IMPORT_C void SetURIL(const TUriC8& aURI);
71 friend class CRequest;
75 #endif // __RHTTPREQUEST_H__