Skip to content
Myr

misc

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 205a1a1 · Browse files · 1 file+13 added−13 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+13 added−13 removed

  • other:+13 added−13 removed

1 file+13 added−13 removed

modified:lib/response.js+13 added-13 removed
27 unmodified lines
28 __proto__: http.ServerResponse.prototype29};3031/**32 * Set status `code`.33 *34 * @param {Number} code35 * @return {ServerResponse}36 * @api public37 */3839res.status = function(code){40 this.statusCode = code;41 return this;42};4344/**45 * Send a response.46 *47 * Examples:48 *
102 unmodified lines
151 return this.send(body);152};153154/**142 * Set status `code`.143 *144 * @param {Number} code145 * @return {ServerResponse}146 * @api public147 */148149res.status = function(code){150 this.statusCode = code;151 return this;152};153154/**155 * Transfer the file at the given `path`.156 * 157 * Automatically sets the _Content-Type_ response header field.158 * The callback `fn(err)` is invoked when the transfer is complete
418 unmodified lines