struct CCL::Web::IWebHeaderCollection

Overview

Collection for protocol-specific headers. More…

#include <iwebrequest.h>

struct IWebHeaderCollection: public CCL::IUnknown
{
    // methods

    virtual ICStringDictionary& getEntries () = 0;
    virtual tbool CCL_API parseFileName (String& fileName) const = 0;
    virtual tbool CCL_API parseDate (CCL::DateTime& date) const = 0;
    virtual tbool CCL_API isChunkedTransfer () const = 0;
    virtual tbool CCL_API setRangeBytes (int64 start, int64 end = 0) = 0;
};

Inherited Members

public:
    // methods

    virtual tresult CCL_API queryInterface (UIDRef iid, void** ptr) = 0;
    virtual unsigned int CCL_API retain () = 0;
    virtual unsigned int CCL_API release () = 0;

Detailed Documentation

Collection for protocol-specific headers.

Methods

virtual ICStringDictionary& getEntries () = 0

Get all header entries.

virtual tbool CCL_API parseFileName (String& fileName) const = 0

Parse filename from “Content-Disposition” header.

virtual tbool CCL_API parseDate (CCL::DateTime& date) const = 0

Parse the response date from the “Date” header.

virtual tbool CCL_API isChunkedTransfer () const = 0

Returns true for chunked transfer (“Transfer-Encoding”).

virtual tbool CCL_API setRangeBytes (int64 start, int64 end = 0) = 0

Set range requested by client (“Range”), end = 0 denotes end of file.