|
libmoost
|
This class is an object representation of a LibCurl response. More...
#include <response.hpp>

Classes | |
| struct | userdata |
| Represents the userdata object to the request callback. More... | |
Public Member Functions | |
| response () | |
| Construct a response object and an suitably initialised userdata POD. | |
| std::string const & | get () const |
| get the response string | |
| userdata * | operator() () |
| A function operator to return a pointer to user data. | |
Static Public Member Functions | |
| static size_t | callback (char *ptr, size_t size, size_t nmemb, void *userdata) |
Static Private Member Functions | |
| static bool | validate (userdata *prud) |
Private Attributes | |
| std::string | data_ |
| userdata | userdata_ |
This class is an object representation of a LibCurl response.
Definition at line 52 of file response.hpp.
| moost::murcl::response::response | ( | ) | [inline] |
Construct a response object and an suitably initialised userdata POD.
Definition at line 73 of file response.hpp.
| static size_t moost::murcl::response::callback | ( | char * | ptr, |
| size_t | size, | ||
| size_t | nmemb, | ||
| void * | userdata | ||
| ) | [inline, static] |
| ptr | pointer to data that needs to be written |
| size | size of a single datum to be written |
| nmemb | the number of data to be written |
| userdata | a user definable object (here it is set to 'this') |
This callback needs to be registered with LibCurl. If this class is used in conjunction with murcl::request the registration is done automatically.
Definition at line 97 of file response.hpp.


| std::string const& moost::murcl::response::get | ( | ) | const [inline] |
| userdata* moost::murcl::response::operator() | ( | ) | [inline] |
A function operator to return a pointer to user data.
Definition at line 134 of file response.hpp.
| static bool moost::murcl::response::validate | ( | userdata * | prud | ) | [inline, static, private] |
std::string moost::murcl::response::data_ [private] |
Definition at line 146 of file response.hpp.
userdata moost::murcl::response::userdata_ [private] |
Definition at line 147 of file response.hpp.