|
From: Matt T. <mat...@gm...> - 2010-05-28 02:48:18
|
Heya Dean,
As always, thanks to you, Glyn and everyone else associated with the
cpp-netlib; we're using it on a live project and have found it very
useful!
> * asynchronous http client
Async HTTP is the only feature in the list that we require. We've
actually managed to cobble together an async solution based on
cpp-netlib but it's so ugly that I haven't contributed it back. We
did have plans to tidy it up and submit it to you guys but finding
time is proving *very* difficult.
Actually, I should be more specific here. The critical requirement
for us is to allow *timeouts* on http requests. But I think that -
internally - you'll need to move the implementation to async asio
calls to allow the timeout to work correctly. At least that's what we
did - we initialised a deadline_timer and checked if it had expired
after each stage of the http request.
> Are there any specific requests for improvement in the documentation that you would like me
> personally to address?
An example with a threadpool would be nice: Push an http request into
a threadpool and get a callback when it's been completed (or timed
out).
> cout << body(http::client().get(http::client::request("http://www.boost.org/")) << endl;
Excellent!
Thanks again,
Matt
PS, when I tried to download the source in either zip or tgz through
github a virus was found (by github):
Virus/PUS: "Email-Worm.Win32.Plexus.a" found!
It was in one of the test messages:
http://github.com/mikhailberis/cpp-netlib/blob/master/libs/mime/test/TestMessages/00001136
Is this intended??
|