remove res.statusString
This commit is contained in:
parent
1f908137d2
commit
71536b35be
2 changed files with 1 additions and 16 deletions
|
@ -18,10 +18,6 @@
|
||||||
|
|
||||||
Get response status. By default, `res.status` is not set unlike node's `res.statusCode` which defaults to `200`.
|
Get response status. By default, `res.status` is not set unlike node's `res.statusCode` which defaults to `200`.
|
||||||
|
|
||||||
### res.statusString
|
|
||||||
|
|
||||||
Response status string
|
|
||||||
|
|
||||||
### res.status=
|
### res.status=
|
||||||
|
|
||||||
Set response status via numeric code or case-insensitive string:
|
Set response status via numeric code or case-insensitive string:
|
||||||
|
|
|
@ -46,17 +46,6 @@ module.exports = {
|
||||||
return this.res._headers || {};
|
return this.res._headers || {};
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
|
||||||
* Return response status string.
|
|
||||||
*
|
|
||||||
* @return {String}
|
|
||||||
* @api public
|
|
||||||
*/
|
|
||||||
|
|
||||||
get statusString() {
|
|
||||||
return http.STATUS_CODES[this.status];
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get response status code.
|
* Get response status code.
|
||||||
*
|
*
|
||||||
|
@ -444,7 +433,7 @@ module.exports = {
|
||||||
toJSON: function(){
|
toJSON: function(){
|
||||||
return {
|
return {
|
||||||
status: this.status,
|
status: this.status,
|
||||||
string: this.statusString,
|
string: http.STATUS_CODES[this.status],
|
||||||
header: this.header
|
header: this.header
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue