Search code examples
javascriptnode.jshttprestifyhttp-request

What is the difference between node.js request and restify client?


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?

http://restify.com/#client-api

https://www.npmjs.com/package/request


Solution

  • 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.