CResponse::begin

The CResponse::begin function begins to send output. It is mandatory in Ch-CGI and for Ch-CGI only.

int begin();


Return Type

int
Upon successful completion, zero is returned. Otherwise, a value of non-zero is returned.


Parameters

None.


Remarks

This function starts processing all headers set in CResponse::set* and CResponse::add*. It is mandatory in Ch-CGI. Any CResponse::set* and CResponse::add* member functions including CResponse::setContentType, CResponse::addCookie, and CResponse::addHeader should be called before this function is called.


Differences Between Ch-CGI and Ch-ASP

This member function is mandatory in Ch-CGI. It is not valid in Ch-ASP.


See Also

CResponse, CResponse::end, CResponse::title

Example