27 #ifndef AOSSL_HTTP_CLIENT_INCLUDE_HTTP_INTERFACE_H_ 28 #define AOSSL_HTTP_CLIENT_INCLUDE_HTTP_INTERFACE_H_ 35 const char * int_msg_cstr;
39 int_msg =
"Error Sending HTTP Request: " + msg;
40 int_msg_cstr = int_msg.c_str();
47 const char *
what()
const throw() {
52 typedef size_t (*WriteCallback)(
char *, size_t, size_t,
void*);
61 virtual void shutdown() = 0;
71 virtual bool put(std::string url, std::string data,
int timeout) = 0;
77 virtual std::string
get(std::string url,
int timeout) = 0;
83 virtual bool post(std::string url, std::string data,
int timeout) = 0;
89 virtual bool del(std::string url,
int timeout) = 0;
92 #endif // AOSSL_HTTP_CLIENT_INCLUDE_HTTP_INTERFACE_H_ The HTTP Requests Administrators.
Definition: http_interface.h:58
Definition: http_interface.h:32
HttpRequestException(std::string msg)
Create a HTTP Request Exception, and store the given error message.
Definition: http_interface.h:38
std::string int_msg
An error message passed on initialization.
Definition: http_interface.h:34
const char * what() const
Show the error message in readable format.
Definition: http_interface.h:47