[英]How can I respond back to a non standard(non HTTP) request over Node.JS Server?
I am sending a non-standard request ie not HTTP request from my browser using my own developed Firefox Add-On. 我正在使用自己开发的Firefox插件从浏览器发送非标准请求,即不是HTTP请求。 I am able to receive the request on Node.JS server but I am not able to find a way to respond to the request with a static HTML page.
我可以在Node.JS服务器上接收请求,但无法找到一种使用静态HTML页面响应请求的方法。 I would like to emphasize that I not using HTTP server built over Node.JS.
我想强调一点,我没有使用通过Node.JS构建的HTTP服务器。 I just looking for a way to respond back to the client browser from which my own non-standard request was generated.
我只是在寻找一种方法来响应生成我自己的非标准请求的客户端浏览器。 I can't use http.createserver().listen().
我不能使用http.createserver()。listen()。 I am using a function to fetch request generated by user.
我正在使用一个函数来提取用户生成的请求。 Thanks in advance.
提前致谢。
使用net.createServer而不是http.createServer。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.