New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: add events on application #2039
Conversation
docs/source/zh-cn/basics/objects.md
Outdated
app.on('error', (err, ctx) => { | ||
// log | ||
}); | ||
app.on('resposne', ctx => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo
docs/source/zh-cn/basics/objects.md
Outdated
// log | ||
}); | ||
app.on('resposne', ctx => { | ||
const used = Date.now() - ctx.starttime; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
加个 request 来记录 starttime ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
starttime 是已有的了,这里我加个注释
Codecov Report
@@ Coverage Diff @@
## master #2039 +/- ##
=======================================
Coverage 99.59% 99.59%
=======================================
Files 29 29
Lines 743 743
=======================================
Hits 740 740
Misses 3 3 Continue to review full report at Codecov.
|
docs: add events on application (#2039)
Checklist
npm test
passesAffected core subsystem(s)
Description of change