1.1 --- a/epoc32/include/mw/http/rhttpheaders.h Wed Mar 31 12:27:01 2010 +0100
1.2 +++ b/epoc32/include/mw/http/rhttpheaders.h Wed Mar 31 12:33:34 2010 +0100
1.3 @@ -1,9 +1,9 @@
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 +// under the terms of "Eclipse Public License v1.0"
1.9 // which accompanies this distribution, and is available
1.10 -// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
1.11 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.12 //
1.13 // Initial Contributors:
1.14 // Nokia Corporation - initial contribution.
1.15 @@ -13,10 +13,8 @@
1.16 // Description:
1.17 //
1.18
1.19 -
1.20 -
1.21 /**
1.22 - @file RHTTPHeaders.h
1.23 + @file
1.24 @warning : This file contains Rose Model ID comments - please do not delete
1.25 */
1.26
1.27 @@ -75,7 +73,7 @@
1.28 //##ModelId=3C4C18800079
1.29 IMPORT_C TInt GetField(RStringF aFieldName,
1.30 TInt aPartIdx, THTTPHdrVal& aHeaderValue) const;
1.31 -
1.32 +
1.33 /** Obtain an Raw representation of the named header
1.34 field's value. Note that general client use of this method is
1.35 strongly discouraged since it exposes the Raw representation of particular headers.
1.36 @@ -91,7 +89,9 @@
1.37 //##ModelId=3C4C18800076
1.38 IMPORT_C TInt GetRawField(RStringF aFieldName,
1.39 TPtrC8& aRawFieldData) const;
1.40 -
1.41 +
1.42 + IMPORT_C void GetRawFieldL(RStringF aFieldName, TPtrC8& aRawFieldData) const;
1.43 +
1.44 /** Obtain the value of a named parameter, associated with the
1.45 named header field. An optional index to a part within the
1.46 header field may be supplied, if not it is assumed that it is
1.47 @@ -131,7 +131,8 @@
1.48 @param aFieldValue The field value, e.g. 'text/html' */
1.49 //##ModelId=3C4C18800060
1.50 IMPORT_C void SetFieldL(RStringF aFieldName, THTTPHdrVal aFieldValue);
1.51 -
1.52 + IMPORT_C TInt SetField(RStringF aFieldName, THTTPHdrVal aFieldValue);
1.53 +
1.54 /** Set a named field in the header, and associate with it the
1.55 supplied parameter. If the field doesn't already exist it will
1.56 be created along with a parameter; if it does exist, then a
1.57 @@ -143,7 +144,8 @@
1.58 //##ModelId=3C4C18800063
1.59 IMPORT_C void SetFieldL(RStringF aFieldName, THTTPHdrVal aFieldValue,
1.60 RStringF aParamName, THTTPHdrVal aParamValue);
1.61 -
1.62 + IMPORT_C TInt SetField(RStringF aFieldName, THTTPHdrVal aFieldValue,
1.63 + RStringF aParamName, THTTPHdrVal aParamValue);
1.64 /** Set a parameter in an existing header.
1.65 @param aFieldName The field name, e.g. 'Accept'
1.66 @param aPartIdx The part of the header to add the parameter to
1.67 @@ -171,7 +173,8 @@
1.68 IMPORT_C void SetRawFieldL(RStringF aFieldName,
1.69 const TDesC8& aRawFieldData,
1.70 const TDesC8& aFieldSeparator);
1.71 -
1.72 +
1.73 + IMPORT_C TInt SetRawField(RStringF aFieldName, const TDesC8& aRawFieldData, const TDesC8& aFieldSeparator);
1.74 /** Remove, entirely, the named header field from the header
1.75 collection. All its parts and associated parameters (where
1.76 they exist) are also removed.
1.77 @@ -200,6 +203,8 @@
1.78
1.79 private:
1.80 friend class CHeaders;
1.81 + friend class CHttpClientTransaction;
1.82 + friend class CHttpClientTransactionImpl;
1.83 //##ModelId=3C4C1880003A
1.84 CHeaders* iImplementation;
1.85 };