Skip to content
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

Need more detailed documentation for "next" callback for event handlers #788

Closed
chiahrens opened this issue Apr 24, 2013 · 4 comments
Closed
Assignees
Labels
documentation Non-code related changes
Milestone

Comments

@chiahrens
Copy link

I see some examples of the "next" callback for various event handlers, but the accepted parameters are not always clears - both the type and behavior.

For example, for ext, it says:
next - the callback function the extension method must call to return control over to the router. The function takes an optional response argument, which will cause the process to jump to the "send response" step, skipping all other steps in between.

@hueniverse
Copy link
Contributor

LMK if the new text is clearer.

@chiahrens
Copy link
Author

Yeah. I had to ctrl-F and scroll toward the bottom to find the valid "result" objects at https://github.com/spumko/hapi/blob/master/docs/Reference.md#requestreplyresult but it's pretty clear once you connect those together.

@hueniverse
Copy link
Contributor

Why? that reference is linked from the explanation...

@chiahrens
Copy link
Author

My bad. I didn't realize request.reply() linked to the detailed doc on result. Thanks.

@ghost ghost assigned hueniverse Apr 26, 2013
jmonster pushed a commit to jmonster/hapi that referenced this issue Feb 10, 2014
@lock lock bot locked as resolved and limited conversation to collaborators Jan 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Non-code related changes
Projects
None yet
Development

No branches or pull requests

2 participants