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

Add sample handler and docs for non-JSON body #977

Merged
merged 60 commits into from
Mar 23, 2020

Conversation

eddyashton
Copy link
Member

We've supported non-JSON bodies in the framework for a while, but we didn't have a sample. This adds a sample in the C++ logging app, adds some docs, and tweaks the Python infra to allow these payloads though unhindered.

@eddyashton eddyashton requested a review from a team as a code owner March 23, 2020 14:59
@ghost
Copy link

ghost commented Mar 23, 2020

non_json_body_sample@6303 aka 20200323.65 vs master ewma over 30 builds from 5972 to 6297
images

@@ -57,17 +57,29 @@ The logging app defines :cpp:class:`ccfapp::LoggerHandlers`, which creates and i
:end-before: SNIPPET_END: get
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if it's worth adding a new page/section that describes the different types and options on handlers without mentioning the logging app specifically? I think we'll need one sooner or later to describe the different types/flags on handlers. We could always link to the logging app as examples (with back links too). Thinking about it, we should doxygen handlerregistry.h and get most of this for free. What do you think?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree! This is where we should aim, ideally with most of this coming 'for free' from doxygen. I think the next step is to split the thing apps see from the thing the framework sees (ie - they get an opaque Handle with the methods, we see the raw struct state), then the app side gets doxygen'd.

Naming is awkward - what's a 'handle' for a 'handler'? Maybe we should go more HTTP-heavy and talk about installing resources or endpoints rather than RPC handlers?

Anyway I think this is all future work.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doxygen + links is absolutely the way to go! For naming, I think we should pick a popular framework, align, and reference explicitly.

@achamayou achamayou merged commit 95f08da into microsoft:master Mar 23, 2020
eddyashton added a commit to eddyashton/CCF that referenced this pull request Mar 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants