epoc32/include/mw/http/rhttprequest.h
branchSymbian2
changeset 3 e1b950c65cb4
parent 2 2fe1408b6811
child 4 837f303aceeb
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/epoc32/include/mw/http/rhttprequest.h	Wed Mar 31 12:27:01 2010 +0100
     1.3 @@ -0,0 +1,77 @@
     1.4 +// Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// 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
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +//
    1.18 +
    1.19 +
    1.20 +
    1.21 +/**
    1.22 + @file RHTTPRequest.h
    1.23 + @warning : This file contains Rose Model ID comments - please do not delete
    1.24 +*/
    1.25 +
    1.26 +#ifndef __RHTTPREQUEST_H__
    1.27 +#define __RHTTPREQUEST_H__ 
    1.28 +
    1.29 +// System includes
    1.30 +#include <uri8.h>
    1.31 +#include <stringpool.h>
    1.32 +#include <http/rhttpmessage.h>
    1.33 +
    1.34 +
    1.35 +//##ModelId=3C4C186E0191
    1.36 +class RHTTPRequest : public RHTTPMessage
    1.37 +/** 
    1.38 +An HTTP Request.  This class extends the abstract HTTP Message to add an HTTP
    1.39 +method to be invoked on the resource at the remote HTTP server, and the URL that
    1.40 +identifies that resource.
    1.41 +@publishedAll
    1.42 +@released
    1.43 +*/
    1.44 +	{
    1.45 + public:
    1.46 +	/** Get Methods
    1.47 +		Methods for reading information from the response.
    1.48 +	*/
    1.49 +	//@{
    1.50 +	/// Gets the method name
    1.51 +	/// @return The method to be used in the HTTP request.
    1.52 +	//##ModelId=3C4C186E01B3
    1.53 +	IMPORT_C RStringF Method() const;
    1.54 +	/// Gets the URI
    1.55 +	/// @return The URI to be used in the HTTP request.
    1.56 +	//##ModelId=3C4C186E01B2
    1.57 +	IMPORT_C const TUriC8& URI() const;
    1.58 +	//@}
    1.59 +	/**Set Methods
    1.60 +		
    1.61 +		Methods for setting information. These methods will not be of
    1.62 +		use to the client; they are intended for the use of advanced
    1.63 +		filters
    1.64 +	*/
    1.65 +	//@{
    1.66 +	/// Sets the method name
    1.67 +	/// @param aMethod The method name to be used in the HTTP request.
    1.68 +	//##ModelId=3C4C186E01B0
    1.69 +	IMPORT_C void  SetMethod(RStringF aMethod);
    1.70 +	/// Sets the URI
    1.71 +	/// @param aURI The URI to be used in the HTTP request.
    1.72 +	//##ModelId=3C4C186E01A6
    1.73 +	IMPORT_C void SetURIL(const TUriC8& aURI);
    1.74 +	//@}
    1.75 +
    1.76 +	friend class CRequest;
    1.77 +	};
    1.78 +
    1.79 +
    1.80 +#endif //	__RHTTPREQUEST_H__