Return TypeFunction nameArguments
hzEcodehzHttpEvent::SendRawString(HttpRC,hzMimetype,const hzString&,unsigned int,bool,)

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

Function Logic:

0:START 1:hzString::Length hzHttpEvent::_formhead rc 2:rc!=E_OK 3:Return hzerr(rc,Could not formulate HTTP header (sock=%d),m_pCx->CliSocket()) 4:items 5:m_pCx->SendData(Z)!=E_OK 6:hzChain::Size hzIpConnex::CliSocket 7:Return E_WRITEFAIL 8:Return E_OK

Function body:

hzEcode hzHttpEvent::SendRawString (HttpRC hrc, hzMimetype type, const hzString& Content, unsigned int nExpires, bool bZip)
{
   _hzfunc("hzHttpEvent::SendRawString") ;
   hzChain Z ;
   hzEcode rc ;
   rc = _formhead(Z, hrc, type, Content.Length(), nExpires, bZip) ;
   if (rc != E_OK)
       return hzerr(rc, "Could not formulate HTTP header (sock=%d)", m_pCx->CliSocket()) ;
   Z << Content ;
   if (m_pCx->SendData(Z) != E_OK)
   {
       hzerr(E_WRITEFAIL, "hzHttpEvent %p Failed to send response (size=%d, sock=%d)", this, Z.Size(), m_pCx->CliSocket()) ;
       return E_WRITEFAIL ;
   }
   return E_OK ;
}