/*JSON{ "type":"method", "class" : "httpSRs", "name" : "write", "generate" : "jswrap_httpSRs_write", "params" : [ [ "data", "JsVar", "A string containing data to send"] ], "return" : ["bool", "For note compatibility, the boolean false. When the send buffer is empty, a `drain` event will be sent" ] }*/ bool jswrap_httpSRs_write(JsVar *parent, JsVar *data) { httpServerResponseData(parent, data); return false; }
/*JSON{ "type":"method", "class" : "httpSRs", "name" : "write", "generate" : "jswrap_httpSRs_write", "params" : [ [ "data", "JsVar", "A string containing data to send"] ] }*/ void jswrap_httpSRs_write(JsVar *parent, JsVar *data) { httpServerResponseData(parent, data); }
void httpServerResponseEnd(JsVar *httpServerResponseVar) { httpServerResponseData(httpServerResponseVar, 0); // force onnection->sendData to be created even if data not called jsvUnLock(jsvObjectSetChild(httpServerResponseVar, HTTP_NAME_CLOSE, jsvNewFromBool(true))); }