Frontend/25_02_24/node_modules/@tinyhttp/send/dist/status.js

10 lines
262 B
JavaScript
Raw Normal View History

2025-02-25 08:55:29 +00:00
/**
* Sets the HTTP status for the response. It is a chainable alias of Nodes `response.statusCode`.
*
* @param res Response
*/
export const status = (res) => (status) => {
res.statusCode = status;
return res;
};
//# sourceMappingURL=status.js.map