You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The documentation on the website showing an example of an http server does not compile and differs from the example code contained in the 0.11.0 tar archive; the example in the tar file being able to compile. Also, in the api documentation for the asynchronous server, hardly any explanation is given about the callback function of the write method. Could you please add more of an explanation of the callback function such as, what specific events cause it to be called and how one is supposed to keep a connection alive using it, which is what was mentioned in this post: http://tinyurl.com/mjt9srk.
A simple example demonstrating a callback function implementation in the docs would be beneficial to those trying to learn the library. Thank you.
@deanberris Sure, I'll look into it. I'm figuring some things out now, that I think would be good to mention. Like that you should keep a single client object for your app's lifecycle because apparently having the object go out of scope leads to a hang, apparently (because resources are being released).
Activity
deanberris commentedon Nov 9, 2014
Thank you for the report @b-mcg -- yes, this needs to be fixed.
paralin commentedon Feb 20, 2015
+1
I'm so confused because most of the examples in the documentation simply don't work.
deanberris commentedon Feb 23, 2015
@paralin Thanks -- I'm so sorry about this. Do you have time to try fixing the documentation, and submitting pull requests to make it better?
paralin commentedon Feb 23, 2015
@deanberris Sure, I'll look into it. I'm figuring some things out now, that I think would be good to mention. Like that you should keep a single client object for your app's lifecycle because apparently having the object go out of scope leads to a hang, apparently (because resources are being released).
I'll have a go at updating the docs soon.
deanberris commentedon Feb 23, 2015
Thanks @paralin -- let me know how else I can help, in case you need specific guidance on anything.
ksl67 commentedon Feb 23, 2018
An example showing how to get the body of a POST request would be helpful too. See #823.