9 #include "fwNetworkIO/config.hpp" 10 #include "fwNetworkIO/exceptions/ConnectionRefused.hpp" 11 #include "fwNetworkIO/exceptions/ContentNotFound.hpp" 12 #include "fwNetworkIO/exceptions/HostNotFound.hpp" 13 #include "fwNetworkIO/http/Request.hpp" 15 #include <QNetworkReply> 28 unsigned int status_code;
35 class FWNETWORKIO_CLASS_API
ClientQt :
public QObject
45 FWNETWORKIO_API
virtual ~ClientQt();
52 FWNETWORKIO_API QByteArray
get(Request::sptr request);
58 FWNETWORKIO_API std::string getFile(Request::sptr request);
72 FWNETWORKIO_API QByteArray post(Request::sptr request,
const QByteArray& body);
76 void processError(QNetworkReply::NetworkError errorCode);
The namespace fwNetworkIO contains the primary methods to access network.
HTTP client using Qt Network.
std::map< std::string, std::string > HeadersType
Maps header name to its value.
This structure represent an HTTP response.