3 ms·
req.get / res.set are obvious in use so it's not bad (res.set('Content-Type', 'application/json')). I'll likely keep the old .header() methods for BC. "res.rend
by tjholowaychuk 15y ago
req.get / res.set are obvious in use so it's not bad (res.set('Content-Type', 'application/json')). I'll likely keep the old .header() methods for BC. "res.render(404, 'not here')" never worked, maybe you mean res.send(404, 'sorry')?
- ricardobeat 15y agoThat's correct, my mistake. I see that `res.status(code)` was added to the docs, that's nice.