Skip to content

Add echo_async_server example #862

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

Merged
merged 1 commit into from
Nov 2, 2018
Merged

Add echo_async_server example #862

merged 1 commit into from
Nov 2, 2018

Conversation

mtrenkmann
Copy link

This PR adds example code that implements a minimal echo server demonstrating how to read body data from the connection object associated with a POST request. It also contains information on how to deal with a "Expect: 100-continue" header which might be less known to users of the library.

I think the code helps people who expect the body of a POST request is in request.body, which is obviously not the case, and getting started with asynchronous I/O. There is also a StackOverflow threat that addresses the issue and which has no accepted answer as of today (the proposed solutions go in the right direction but are not satisfying in my opinion).

Copy link
Member

@deanberris deanberris left a comment

Choose a reason for hiding this comment

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

LGTM -- Thanks you, @mtrenkmann!

@deanberris deanberris merged commit e09e7ab into cpp-netlib:master Nov 2, 2018
@mtrenkmann mtrenkmann deleted the add-echo-server-example branch November 2, 2018 06:43
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.

2 participants