UNPKG

@hutiwephy/ape-express

Version:

Authenticate and Encrypt HTTP with User Credentials (Not TLS-SRP) (ExpressJS Implementation).

9 lines (8 loc) 164 B
/** * * @param {Buffer} body * @returns {object} */ module.exports = function(body){ return (body.length == 0)? {} : JSON.parse(body.toString("utf8")); }