Both seem to serve similar purpose. I am using restify server as REST API server. Does it mean it is better that I use restify client as well?
Asked
Active
Viewed 844 times
1 Answers
3
request
is a small module that makes it easier for you to handle HTTP requests in Node.js.
restify
is a framework that lets you create REST API server very easily. It handles all the nitpicky things you would have to do like routing, etc.
Inevitably, you could probably make your own RESTful API in Node.js by simply using the request
module. restify
made their own custom one that they use within the framework.

aug
- 11,138
- 9
- 72
- 93
-
Can restify client replace request module? http://restify.com/#client-api Does request module have better community support, say on stackoverflow? – guagay_wk Nov 28 '15 at 00:55
-
1@user16891328 I don't think replace is the appropriate term. Rather restify comes bundled with its own version of the request module. They have documentation [here](http://restify.com/#request-api). In terms of community support, they both are very popular. It really depends on what you are trying to achieve. If you are handling a simple HTTP request, doesn't make sense to bring in all of restify. If you are trying to make a REST API, you probably don't want to build it from scratch with just the request module. – aug Nov 28 '15 at 01:01