DCL 4.0
Loading...
Searching...
No Matches
HttpHeader Class Reference

#include <HttpHeader.h>

Inheritance diagram for HttpHeader:
HttpExpires HttpSetCookie HttpSetCookie2

Public Member Functions

 HttpHeader ()
 HttpHeader (const HttpHeader &src)
 HttpHeader (const wchar_t *_name, const wchar_t *_content=NULL)
const String & name () const
const String & content () const
String toString () const

Protected Attributes

String __name
String __content

Detailed Description

Definition at line 20 of file HttpHeader.h.

Constructor & Destructor Documentation

◆ HttpHeader() [1/3]

HttpHeader::HttpHeader ( )
inline

Definition at line 71 of file HttpHeader.h.

72{
73}

◆ HttpHeader() [2/3]

HttpHeader::HttpHeader ( const HttpHeader & src)
inline

Definition at line 75 of file HttpHeader.h.

76{
77 __name = src.__name;
78 __content = src.__content;
79}
String __content
Definition HttpHeader.h:24
String __name
Definition HttpHeader.h:23

◆ HttpHeader() [3/3]

HttpHeader::HttpHeader ( const wchar_t * _name,
const wchar_t * _content = NULL )
inline

Definition at line 81 of file HttpHeader.h.

82{
83 __DCL_ASSERT(_name != NULL);
84 __DCL_ASSERT(*_name != L'\0');
85
86 __name = _name;
87
88 if (_content != NULL)
89 __content = _content;
90}
#define NULL
Definition Config.h:340
#define __DCL_ASSERT(expr)
Definition Object.h:371

Member Function Documentation

◆ content()

const String & HttpHeader::content ( ) const
inline

Definition at line 97 of file HttpHeader.h.

98{
99 return __content;
100}

◆ name()

const String & HttpHeader::name ( ) const
inline

Definition at line 92 of file HttpHeader.h.

93{
94 return __name;
95}

◆ toString()

__DCL_BEGIN_NAMESPACE String HttpHeader::toString ( ) const

Definition at line 21 of file HttpHeader.cpp.

22{
23 return __name + __T(": ") + __content;
24}
#define __T(str)
Definition Object.h:44

Member Data Documentation

◆ __content

String HttpHeader::__content
protected

Definition at line 24 of file HttpHeader.h.

◆ __name

String HttpHeader::__name
protected

Definition at line 23 of file HttpHeader.h.


The documentation for this class was generated from the following files: