staticlib_http  1.3.2
 All Classes Namespaces Files Functions Variables
Public Member Functions | Protected Member Functions | List of all members
staticlib::http::session Class Reference

#include <staticlib/http/session.hpp>

Inheritance diagram for staticlib::http::session:
staticlib::http::multi_threaded_session staticlib::http::single_threaded_session

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.

Protected Member Functions

 session (session_options opts=session_options{})
 Constructor for inheritors.

Constructor & Destructor Documentation

staticlib::http::session::session ( )
protected

Constructor for inheritors.

Parameters
optionssession options

Member Function Documentation

resource staticlib::http::session::open_url ( const std::string &  url)

PIMPL-specific constructor.

Parameters
pimplimpl object Opens specified HTTP url as a Source
urlHTTP URL
optsrequest 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
urlHTTP URL
post_datadata to upload
optsrequest 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
urlHTTP URL
post_datadata to upload
optsrequest 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
urlHTTP URL
post_datadata to upload
optsrequest options
Returns
HTTP resource
virtual resource staticlib::http::session::open_url ( const std::string &  url,
std::unique_ptr< std::istream >  post_data 
)
pure virtual

Opens specified HTTP url as a Source using POST method.

Parameters
urlHTTP URL
post_datadata to upload
optsrequest options
Returns
HTTP resource

Implemented in staticlib::http::multi_threaded_session, and staticlib::http::single_threaded_session.


The documentation for this class was generated from the following file: