UNPKG

@tinyhttp/send

Version:

json, send, sendFile, status and sendStatus methods for tinyhttp

10 lines 262 B
/** * 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