This is something that the request object supports but not the response. Restify directly uses http.IncomingMessage and adds methods to its prototype. I don't support this approach, but I didn't write the module. The mock request module uses EventEmitter. If I could have it use an alternate EventEmitter, that would be wonderful. The response mock already allows this but the request is lacking this functionality.
Would this be something you'd be willing to implement?
This is something that the request object supports but not the response. Restify directly uses
http.IncomingMessage
and adds methods to its prototype. I don't support this approach, but I didn't write the module. The mock request module uses EventEmitter. If I could have it use an alternate EventEmitter, that would be wonderful. The response mock already allows this but the request is lacking this functionality.Would this be something you'd be willing to implement?