| Return Type | Function name | Arguments |
|---|---|---|
| hzEcode | hzHttpEvent::SendRawChain | (HttpRC,hzMimetype,const hzChain&,unsigned int,bool,) |
Declared in file: hzHttpServer.h
Defined in file : hzHttpServer.cpp
Function Logic:
Function body:
hzEcode hzHttpEvent::SendRawChain (HttpRC hrc, hzMimetype type, const hzChain& Data, unsigned int nExpires, bool bZip)
{
_hzfunc("hzHttpEvent::SendRawChain") ;
hzChain Z ;
hzEcode rc ;
rc = _formhead(Z, hrc, type, Data.Size(), nExpires, bZip) ;
if (rc != E_OK)
return hzerr(rc, "Could not formulate HTTP header (sock=%d)", m_pCx->CliSocket()) ;
if (m_pCx->SendData(Z, Data) != E_OK)
{
hzerr(E_WRITEFAIL, "Event %p Failed to send response (size=%d + %d, sock=%d)", this, Z.Size(), Data.Size(), m_pCx->CliSocket()) ;
return E_WRITEFAIL ;
}
return E_OK ;
}