libmoost
|
An abstract represenation of the LibCurl easy interface. More...
#include <easy.hpp>
Public Types | |
typedef boost::shared_ptr< easy > | ptr |
Shared pointer for a murcl_easy instance. | |
Public Member Functions | |
easy () | |
Go make me an easy API object; simples! | |
template<typename OptionTraits > | |
void | set_option (typename OptionTraits::value_type const &val) |
Set a LibCurl option. | |
~easy () | |
Clean up after ourselves - it's only polite to do so! | |
void | perform () const |
Performs a request as defined by the options that were set. | |
Private Member Functions | |
void | validate_result (CURLcode const code, std::string const &msg) const |
Private Attributes | |
CURL * | handle_ |
option_stash | optstash_ |
typedef boost::shared_ptr<easy> moost::murcl::easy::ptr |
moost::murcl::easy::easy | ( | ) | [inline] |
moost::murcl::easy::~easy | ( | ) | [inline] |
void moost::murcl::easy::perform | ( | ) | const [inline] |
void moost::murcl::easy::set_option | ( | typename OptionTraits::value_type const & | val | ) | [inline] |
void moost::murcl::easy::validate_result | ( | CURLcode const | code, |
std::string const & | msg | ||
) | const [inline, private] |
CURL* moost::murcl::easy::handle_ [private] |
option_stash moost::murcl::easy::optstash_ [private] |