int Ns_ConnReturnHtml( Ns_Conn *conn, int status, char *html, int len );
The Ns_ConnReturnHtml function calls the Ns_ConnSetRequiredHeaders function with the given status followed by the given HTML string. The length is used to generate the Content-Length header. If the length is -1, the function calculates the Content-Length from the string. Ns_ConnReturnHtml returns a status of NS_OK or NS_ERROR.