Single-threaded "session" implementation, NOT thread-safe, opened resource must be disposed before opening next one. More...
#include <staticlib/http/single_threaded_session.hpp>
Public Member Functions | |
| single_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. | |
Single-threaded "session" implementation, NOT thread-safe, opened resource must be disposed before opening next one.
TCP connections are cached where possible and are bound to session object.
| staticlib::http::single_threaded_session::single_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