![Symbian Developer Library](../../../../a_stock/images/mainheading.gif)
![]() |
![]() |
|
class RHeaderField;
An proxy object for a single field in an HTTP header. The class is used by implementations of CHeaderCodec
in order to manipulate the header at the part and parameter level, or to obtain raw data, during a header encode/decode operation.
Defined in RHeaderField
:
BeginRawDataL(TInt)
When the header codec starts converting parsed header data into the raw form, it...Collection()
Get a handle to the headers collection that this field belongs to CommitRawData()
Commits the Raw data. The parsed header parts and parameters are removed, leavin...Name()const
Obtain the name of the header field, e.g. Accept PartsL()
Access the header value parts via an iterator RHeaderField(CHeaderField &)
RawDataL(TPtrC8 &)
Get the header field's raw data representation. This will flip the internal stat...SetPartL(CHeaderFieldPart *,TInt)
Set a part in the header. It replaces any existing part at the specified index. ...WriteRawDataL(TChar)
Add more Raw data, supplied as a single character. The data is appended to the e...WriteRawDataL(const TDesC8 &)
Add more Raw data, supplied as a descriptor. The data is appended to the existin...IMPORT_C RStringF Name() const;
Obtain the name of the header field, e.g. Accept
|
IMPORT_C THeaderFieldPartIter PartsL();
Access the header value parts via an iterator
|
|
IMPORT_C void RawDataL(TPtrC8 &aRawData);
Get the header field's raw data representation. This will flip the internal state of the header, if it's not already in Raw
form. Requires a Codec to be set. May leave due to decode failures with an error code from <httperr.h
>
The header field is in either its 'raw' state (following a successful conversion) or in a 'corrupt' state if decoding failed.
|
|
IMPORT_C RHTTPHeaders Collection();
Get a handle to the headers collection that this field belongs to
|
IMPORT_C void SetPartL(CHeaderFieldPart *aPart, TInt aIndex);
Set a part in the header. It replaces any existing part at the specified index. Note this is for use only by the header codec, when converting Raw data into parsed header parts.
|
IMPORT_C void BeginRawDataL(TInt aChunkSize=KDefaultRawChunkSize);
The header field is in the 'parsed' state
When the header codec starts converting parsed header data into the raw form, it must first call this method to indicate that the raw data is being generated. Memory allocations are done in chunks set at the specified size. Note this method is for use only by the header codec.
The header field is still in the 'parsed' state
|
IMPORT_C void WriteRawDataL(const TDesC8 &aData);
The header field is in the 'parsed' state
Add more Raw data, supplied as a descriptor. The data is appended to the existing contents of the field's internal raw data buffer, which is extended as necessary. Note this method is for use only by the header codec.
The header field is still in the 'parsed' state
|
IMPORT_C void WriteRawDataL(TChar aData);
The header field is in the 'parsed' state
Add more Raw data, supplied as a single character. The data is appended to the existing contents of the field's internal raw data buffer, which is extended as necessary. Note this method is for use only by the header codec.
The header field is still in the 'parsed' state
|
IMPORT_C void CommitRawData();
The header field is in the 'parsed' state
Commits the Raw data. The parsed header parts and parameters are removed, leaving the field in a the raw data form. Note this method is for use only by the header codec.
The header field is in the 'raw' state