Skip to content
Myr

Added res.send() as 204 in the guide

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent a4a349d · Browse files · 1 file+1 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−0 removed

  • other:+1 added−0 removed

1 file+1 added−0 removed

modified:docs/guide.md+1 added
472 unmodified lines
473The `res.send()` method is a high level response utility allowing you to pass474objects to respond with json, strings for html, arbitrary _Buffer_s or numbers for status475code based responses. The following are all valid uses:476477 res.send(); // 204478 res.send(new Buffer('wahoo'));479 res.send({ some: 'json' });480 res.send('<p>some html</p>');481 res.send('Sorry, cant find that', 404);
239 unmodified lines