20 #ifndef __OPERATOR_GLIB_HTTP_HH_ 21 #define __OPERATOR_GLIB_HTTP_HH_ 24 #include <libsoup/soup.h> 36 void httpcall(
const std::string &method,
const std::string &URL,
const HTTP::headers_t &, std::unique_ptr<std::istream> body,
size_t timeout,
const HTTP::httpcallback_t &);
49 std::string to_string()
const {
return err->message; };
50 GError *getGError()
const {
return err; }
57 #endif // __OPERATOR_GLIB_HTTP_HH_
HTTP adapter interface.
Definition: http.hh:48
std::vector< header_t > headers_t
list of HTTP headers.
Definition: http.hh:41
client functionality using the HTTP-based API
std::function< void(std::unique_ptr< Error::Error >, short code, const headers_t &, std::unique_ptr< std::istream > body)> httpcallback_t
HTTP callback type.
Definition: http.hh:44
base error class.
Definition: error.hh:37