added doga
This commit is contained in:
10
25_02_24/node_modules/@tinyhttp/send/dist/status.js
generated
vendored
Normal file
10
25_02_24/node_modules/@tinyhttp/send/dist/status.js
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
/**
|
||||
* Sets the HTTP status for the response. It is a chainable alias of Node’s `response.statusCode`.
|
||||
*
|
||||
* @param res Response
|
||||
*/
|
||||
export const status = (res) => (status) => {
|
||||
res.statusCode = status;
|
||||
return res;
|
||||
};
|
||||
//# sourceMappingURL=status.js.map
|
||||
Reference in New Issue
Block a user