Skip to content
Myr

Make note in docs that res.send() is a convenience method, and should only be called once (ATM)

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 12c7f51 · Browse files · 1 file+2 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+2 added−0 removed

  • other:+2 added−0 removed

1 file+2 added−0 removed

modified:docs/guide.md+2 added
757 unmodified lines
758By default the _Content-Type_ response header is set, however if explicitly759assigned through `res.send()` or previously with `res.header()` or `res.contentType()`760it will not be set again.761762Note that this method _end()_ the response, so you will want to use node's _res.writeHead()_ / _res.write()_ for multiple writes or streaming.763764### res.redirect(url[, status])765766Redirect to the given _url_ with a default response _status_ of 302.767
276 unmodified lines