Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <cheadercodec.h>
Link against: http.lib
This item is not part of the S60 5th Edition SDK

Class CHeaderWriter

class CHeaderWriter : public CBase;

Description

An abstract HTTP header encoder. CHeaderWriter provides an interface used by its owning codec to do conversion of header data from the generic internal header representation to the raw representation used for a particular protocol/transport. Specific sub-classes of CHeaderWriter are associated with specific protocol handlers.

Derivation

Members

Defined in CHeaderWriter:

Inherited from CBase:


Construction and destruction


~CHeaderWriter()

IMPORT_C virtual ~CHeaderWriter();

Description

Intended Usage: Destructor - cleans up and release resources to the system.


CHeaderWriter()

protected: IMPORT_C CHeaderWriter();

Description

Default constructor.


ConstructL()

protected: IMPORT_C void ConstructL();

Description

Second phase construction in which any necessary allocation is done Implementations of this interface may leave with standard errors like KErrNoMemory.

[Top]


Member functions


EncodeHeaderL(RHeaderField &)

virtual void EncodeHeaderL(RHeaderField &aHeader)=0;

Description

Intended Usage: Encodes the supplied header field. This method does a conversion of the field into raw form from the generic internal representation.

Implementations of this interface may leave with any of KErrNotSupported, KErrHttpEncodeDoWWWAuthenticate, KErrHttpEncodeAuthorization, KErrHttpEncodeDoAge, KErrHttpEncodeDoVary, KErrHttpEncodeDoContentLanguage.

Specific header writer sub-classes must implement this method.

Parameters

RHeaderField &aHeader

(in) A proxy for the header field to be encoded


Reserved1()

private: inline virtual void Reserved1();

Description

Intended Usage: Reserve a slot in the v-table to preserve future BC


Reserved2()

private: inline virtual void Reserved2();

Description

Intended Usage: Reserve a slot in the v-table to preserve future BC