-
Notifications
You must be signed in to change notification settings - Fork 378
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
HTTP client capabilities. #41
Comments
A customer has stated:
|
struct Http::Request
{
bool async;
...
std::future< Http::Response > response;
}; Placing HTTP requests on the service run-loop. service.schedule( Http::Request request, const function< void ( Http::Request ) >& callback );
service.schedule( list< Http::Request > request, const function< void ( Http::Request ) >& callback ); Placing HTTP requests on its own run-loop Http::sync( Http::Request request );
Http::sync( std::list< Http::Request >& requests );
Http::async( Http::Request request );
Http::async( std::list< Http::Request >& requests ); |
Placing HTTP requests on the service run-loop service.schedule( Http::Request request, const function< void ( Http::Request ) >& callback );
service.schedule( list< Http::Request > request, const function< void ( Http::Request ) >& callback ); Placing HTTP requests on its own run-loop Http::sync( Http::Request request );
Http::sync( std::list< Http::Request >& requests );
Http::async( Http::Request request );
Http::async( std::list< Http::Request >& requests ); Perform SSL requests SSLSetting settings;
Request request;
request.set_protocol( "HTTPS", settings );
Http::sync( request ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The async methods fire off as many requests as possible and return without blocking. It is then the responsibility of the developer to check each future for a ready response.
Further discussion is required around sharing the same asio::io_service as the restbed::Service or having a separate instance.
The text was updated successfully, but these errors were encountered: