const lambdaHandler = req => Promise.resolve(req) .then(parseCookies) .then(handler) .then(bufferStreams) .catch(wrapError(req)) .then(writeLambda(req)) .then(tap(res => logger({ req, res })))
const wrapError = req => when(is(Error), compose(error, tap(sob(req))))
execSync(R.tap(debug('http2:exec'), `./http2-server ${args}`)) next() } catch(e) {
tap(console.error)
tap(console.error)