SourcePro® API Reference Guide

 
Loading...
Searching...
No Matches
RWHttpIfDateRangeHeader Class Reference

Helper class that defines an HTTP If-Range header with HTTP-date. More...

#include <rw/http/RWHttpIfDateRangeHeader.h>

Inheritance diagram for RWHttpIfDateRangeHeader:
RWHttpDateHeader RWHttpHeaderBase

Public Member Functions

 RWHttpIfDateRangeHeader (const RWHttpDate &date)
 
 RWHttpIfDateRangeHeader (const RWHttpGenericHeader &hdr)
 
 RWHttpIfDateRangeHeader (void)
 
- Public Member Functions inherited from RWHttpDateHeader
 RWHttpDateHeader (const RWCString &label, const RWHttpDate &d, RWHttpHeaderType type=RW_HTTP_ENTITY_HEADER)
 
 RWHttpDateHeader (const RWCString &label, RWHttpHeaderType type=RW_HTTP_ENTITY_HEADER)
 
 RWHttpDateHeader (const RWHttpDate &d)
 
 RWHttpDateHeader (const RWHttpGenericHeader &hdr)
 
 RWHttpDateHeader (void)
 
RWHttpDate getDate (void) const
 
virtual RWCString getValue (void) const
 
void setDate (const RWHttpDate &d)
 
- Public Member Functions inherited from RWHttpHeaderBase
virtual bool append (const RWCString &str)
 
virtual RWCString asString (void) const
 
RWCString getLabel (void) const
 
RWHttpHeaderType getType (void) const
 
bool operator!= (const RWHttpHeaderBase &) const
 
bool operator< (const RWHttpHeaderBase &hdr) const
 
bool operator== (const RWHttpHeaderBase &h) const
 

Additional Inherited Members

- Static Public Member Functions inherited from RWHttpHeaderBase
static unsigned hash (const RWHttpHeaderBase &)
 
- Protected Member Functions inherited from RWHttpHeaderBase
 RWHttpHeaderBase (const RWCString &label, RWHttpHeaderType type=RW_HTTP_ENTITY_HEADER)
 
 RWHttpHeaderBase (void)
 

Detailed Description

RWHttpIfDateRangeHeader is a specialization class of RWHttpDateHeader. It is a helper class that formats its contents as If-Range: followed by a valid HTTP date string.

Constructor & Destructor Documentation

◆ RWHttpIfDateRangeHeader() [1/3]

RWHttpIfDateRangeHeader::RWHttpIfDateRangeHeader ( void )
inline

Constructs a default RWHttpIfDateRangeHeader object with the header label set to If-Range and the HTTP date set to the current date and time.

◆ RWHttpIfDateRangeHeader() [2/3]

RWHttpIfDateRangeHeader::RWHttpIfDateRangeHeader ( const RWHttpDate & date)
inline

Constructs an RWHttpIfDateRangeHeader with the header label set to If-Range and the HTTP date set to date.

◆ RWHttpIfDateRangeHeader() [3/3]

RWHttpIfDateRangeHeader::RWHttpIfDateRangeHeader ( const RWHttpGenericHeader & hdr)

Constructs an RWHttpIfDateRangeHeader from the RWHttpGenericHeader hdr. If the RWHttpGenericHeader is not a validly formatted HTTP If-Range header, an RWHttpHeaderParseError is thrown.

Copyright © 2024 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved.