#include <staticlib/http/session.hpp>
Public Member Functions |
| 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.
|
| virtual resource | open_url (const std::string &url, std::unique_ptr< std::istream > post_data, request_options opts=request_options{})=0 |
| | Opens specified HTTP url as a Source using POST method.
|
Constructor & Destructor Documentation
| staticlib::http::session::session |
( |
| ) |
|
|
protected |
Constructor for inheritors.
- Parameters
-
Member Function Documentation
| resource staticlib::http::session::open_url |
( |
const std::string & |
url | ) |
|
PIMPL-specific constructor.
- Parameters
-
| pimpl | impl object Opens specified HTTP url as a Source |
| url | HTTP URL |
| opts | request options |
- Returns
- HTTP resource
| resource staticlib::http::session::open_url |
( |
const std::string & |
url, |
|
|
std::streambuf * |
post_data |
|
) |
| |
Opens specified HTTP url as a Source using POST method.
- Parameters
-
| url | HTTP URL |
| post_data | data to upload |
| opts | request options |
- Returns
- HTTP resource
template<typename PostDataSource , class = typename std::enable_if<!std::is_lvalue_reference<PostDataSource>::value>::type>
| resource staticlib::http::session::open_url |
( |
const std::string & |
url, |
|
|
PostDataSource && |
post_data |
|
) |
| |
|
inline |
Opens specified HTTP url as a Source using POST method.
- Parameters
-
| url | HTTP URL |
| post_data | data to upload |
| opts | request options |
- Returns
- HTTP resource
template<typename PostDataSource >
| resource staticlib::http::session::open_url |
( |
const std::string & |
url, |
|
|
PostDataSource & |
post_data |
|
) |
| |
|
inline |
Opens specified HTTP url as a Source using POST method.
- Parameters
-
| url | HTTP URL |
| post_data | data to upload |
| opts | request options |
- Returns
- HTTP resource
| virtual resource staticlib::http::session::open_url |
( |
const std::string & |
url, |
|
|
std::unique_ptr< std::istream > |
post_data |
|
) |
| |
|
pure virtual |
The documentation for this class was generated from the following file: