node.jsscgi

writing ClientRequest for scgi with node.js


I want to write an scgi version of http.request, which returns an instance of http.ClientRequest. Of course, I'd write the equivalent but for scgi.

I'm wondering what I should go about extending or where I should begin. I can handle the scgi part, I'm just wondering how to implement it such that it's more or less a drop in replacement for http.request. In other words, used the same way.


Solution

  • I would just take the API specification from the node documentation and reimplement it.