Skip to content

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