Return TypeFunction nameArguments
hzEcodehzHttpEvent::SendHttpHead(hzString&,hzMimetype,uint32_t,)

Declared in file: hzHttpServer.h
Defined in file : hzHttpServer.cpp

Function Logic:

0:START 1:unknown 2:Return E_NODATA 3:rc 4:unknown 5:items 6:Return rc 7:unknown 8:items 9:Return E_WRITEFAIL 10:Return rc

Function body:

hzEcode hzHttpEvent::SendHttpHead (hzString& fixContent)hzMimetype type, uint32_t nExpires, 
{
   _hzfunc("hzHttpEvent::SendHttpHead(str)") ;
   hzChain Z ;     //  Output chain (for head)
   hzEcode rc ;    //  Return code
   if (!fixContent)
       return E_NODATA ;
   rc = _formhead(Z, HTTPMSG_OK, type, fixContent.Length(), nExpires, false) ;
   if (rc != E_OK)
   {
       hzerr(rc, "Could not formulate HTTP header (sock=%d)", m_pCx->CliSocket()) ;
       return rc ;
   }
   if (m_pCx->SendData(Z) != E_OK)
   {
       hzerr(E_WRITEFAIL, "hzHttpEvent %p Failed to send response to browser (sock=%d)", this, m_pCx->CliSocket()) ;
       return E_WRITEFAIL ;
   }
   return rc ;
}