简体   繁体   中英

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. 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. I would like to emphasize that I not using HTTP server built over Node.JS. 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(). I am using a function to fetch request generated by user. Thanks in advance.

使用net.createServer而不是http.createServer。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM