Monday 29 May 2017

How to reduce response time of PUT method in express Js

I am using node js +express js for back-end development on window environment and the response time for the simple PUT request is 5-6 sec and using express version 4.x.x and node is 6.9.10.

Here is the code:

var express = require('express');
var app = express();
app.use('/test', function(req, res) {
     res.send("test put api response");
})
var port = 8000;
app.listen(port); 

Please tell me is there any issue with express version or some other issue.



via Anita Mehta

No comments:

Post a Comment