restless
restless copied to clipboard
Corvusoft's Restless framework brings asynchronous RESTful client functionality to C++11 applications. http://www.corvusoft.co.uk
I am on the lookout for a high performance async http client. Restbed has apparently deprecated support for http client. The restless project appears to be dormant (broken examples link),...
session->fetch, resource->set_method_handler
Trying to do a chunked upload but it doesnt work ``` std::shared_ptr session; void MakeConn( ){ session = std::make_shared(); session->open( "127.0.0.1", 80, [ this ]( auto session, auto status ){...
https://pabloariasal.github.io/2018/02/19/its-time-to-do-cmake-right/
currently not support.
The client should be able to have multiple concurrent requests inflight at any one time. This can optionally be done over multiple sockets.
``` C++ auto request = make_shared< Request >( ); request->set_path( Uri( "/index.cgi", RELATIVE ) ); auto session = make_shared< Session >( Uri( "http://www.google.com" ) ); auto response = session.send( request...
``` C++ vector< Request > requests; auto session = make_shared< Session >( ); session.send( requests, [ ]( const shared_ptr< Session > session ) { //process current response. } ); ```
``` C++ auto service = make_shared< restbed::Service >( ); auto session = make_shared< Session >( service->get_runloop( ) ); session->get_runloop( ); ```