Add tests and support for node http.