Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
GrayLib::cHttpHeaderServer Class Reference

#include <cHttpHeader.h>

Inheritance diagram for GrayLib::cHttpHeaderServer:
GrayLib::cHttpHeader

Public Member Functions

 cHttpHeaderServer (HTTPRET_TYPE eRetCode=HTTPRET_OK_DATA)
 
HRESULT SetServerRetCode (const char *pszPrefixData, StrLen_t iPrefixLen)
 
HRESULT WriteHeadServer (cStreamOutput *pClient) const
 
- Public Member Functions inherited from GrayLib::cHttpHeader
ITERATE_t get_HeadTagQty () const
 
bool HasHeadTag (HTTP_TAG_TYPE eTag) const
 
cStringA FindHeadTag (HTTP_TAG_TYPE eTag) const
 
cTimeInt FindHeadTagTime (HTTP_TAG_TYPE eTag) const
 
int FindHeadTagInt (HTTP_TAG_TYPE eTag) const
 
ITERATE_t AddHeadTag (HTTP_TAG_TYPE eTag, cStringA sVal)
 
ITERATE_t AddHeadTagTime (HTTP_TAG_TYPE eTag, cTimeInt tTime)
 
ITERATE_t AddHeadTagInt (HTTP_TAG_TYPE eTag, int iVal)
 
HRESULT ReadHeader (cStreamInput *pInp, OUT cStringA &sHeadVerb)
 
 UNITTEST_FRIEND (cHttpHeader)
 

Public Attributes

HTTPRET_TYPE m_eRetCode
 What does the server respond with? More...
 

Additional Inherited Members

- Static Public Attributes inherited from GrayLib::cHttpHeader
static const int k_MaxTags = 256
 Arbitrary max number of tags for a single request/response page. More...
 
- Protected Member Functions inherited from GrayLib::cHttpHeader
HRESULT ReadHeadLine (const char *pData, StrLen_t iLen)
 
HRESULT WriteHeadTags (cStreamOutput *pClient) const
 
 cHttpHeader () noexcept
 
 ~cHttpHeader ()
 
- Protected Attributes inherited from GrayLib::cHttpHeader
cArraySortStructHash< cHttpHeadTagm_aTags
 Tags in the HTTP header. More...
 

Detailed Description

HTTP response header sent from server back to client.

Constructor & Destructor Documentation

◆ cHttpHeaderServer()

GrayLib::cHttpHeaderServer::cHttpHeaderServer ( HTTPRET_TYPE  eRetCode = HTTPRET_OK_DATA)
inline

Member Function Documentation

◆ SetServerRetCode()

HRESULT GrayLib::cHttpHeaderServer::SetServerRetCode ( const char *  pszPrefixData,
StrLen_t  iPrefixLen 
)

◆ WriteHeadServer()

HRESULT GrayLib::cHttpHeaderServer::WriteHeadServer ( cStreamOutput pClient) const

Send server response header back to client. e.g. "HTTP/1.1 404 Object Not Found"

Returns
length of bytes written. or < 0 = error.

Member Data Documentation

◆ m_eRetCode

HTTPRET_TYPE GrayLib::cHttpHeaderServer::m_eRetCode

What does the server respond with?


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