20 #ifndef __OPERATOR_QT_HTTP_HH_ 21 #define __OPERATOR_QT_HTTP_HH_ 37 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 &);
39 QNetworkAccessManager *manager;
44 NetworkError(QNetworkReply::NetworkError _err, std::string _msg)
48 std::string to_string()
const {
return msg; };
49 QNetworkReply::NetworkError getQtError()
const {
return err; }
51 QNetworkReply::NetworkError err;
57 #endif // __OPERATOR_QT_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