Thread-safe "session" implementation it can be used for performing HTTP queries from multiple threads simultaneously. More...
#include <staticlib/http/multi_threaded_session.hpp>
Public Member Functions | |
| multi_threaded_session (session_options options=session_options{}) | |
| PIMPL-specific constructor. | |
| virtual resource | open_url (const std::string &url, std::unique_ptr< std::istream > post_data, request_options options=request_options{}) override |
| Opens specified HTTP url as a Source using POST method. | |
Public Member Functions inherited from staticlib::http::session | |
| resource | open_url (const std::string &url, request_options opts=request_options{}) |
| PIMPL-specific constructor. | |
| resource | open_url (const std::string &url, std::streambuf *post_data, request_options opts=request_options{}) |
| Opens specified HTTP url as a Source using POST method. | |
| template<typename PostDataSource , class = typename std::enable_if<!std::is_lvalue_reference<PostDataSource>::value>::type> | |
| resource | open_url (const std::string &url, PostDataSource &&post_data, request_options opts=request_options{}) |
| Opens specified HTTP url as a Source using POST method. | |
| template<typename PostDataSource > | |
| resource | open_url (const std::string &url, PostDataSource &post_data, request_options opts=request_options{}) |
| Opens specified HTTP url as a Source using POST method. | |
Additional Inherited Members | |
Protected Member Functions inherited from staticlib::http::session | |
| session (session_options opts=session_options{}) | |
| Constructor for inheritors. | |
Thread-safe "session" implementation it can be used for performing HTTP queries from multiple threads simultaneously.
Separate thread is used to process session operations. TCP connections are cached where possible and are bound to session object.
| staticlib::http::multi_threaded_session::multi_threaded_session | ( | ) |
PIMPL-specific constructor.
| pimpl | impl object Constructor |
| options | session options |
|
overridevirtual |
Opens specified HTTP url as a Source using POST method.
| url | HTTP URL |
| post_data | data to upload |
| options | request options |
Implements staticlib::http::session.
1.8.1.2