11 #include "interfaces/json-rpc/IClient.h" 12 #include "interfaces/json-rpc/ITransportLayer.h" 13 #include "network/httprequesthandler/IHTTPRequestHandler.h" 38 bool appendPostData(
const char *data,
size_t size)
override;
41 std::string m_requestData;
42 std::string m_responseData;
48 CHTTPTransportLayer() =
default;
49 ~CHTTPTransportLayer()
override =
default;
52 bool PrepareDownload(
const char *path,
CVariant &details, std::string &protocol)
override;
53 bool Download(
const char *path,
CVariant &result)
override;
54 int GetCapabilities()
override;
56 CHTTPTransportLayer m_transportLayer;
61 explicit CHTTPClient(HTTPMethod method);
62 ~CHTTPClient()
override =
default;
64 int GetPermissionFlags()
override {
return m_permissionFlags; }
65 int GetAnnouncementFlags()
override;
66 bool SetAnnouncementFlags(
int flags)
override;
69 int m_permissionFlags;
Definition: IHTTPRequestHandler.h:66
int GetPriority() const override
Returns the priority of the HTTP request handler.
Definition: HTTPJsonRpcHandler.h:31
MHD_RESULT HandleRequest() override
Handles the HTTP request.
Definition: HTTPJsonRpcHandler.cpp:28
IHTTPRequestHandler * Create(const HTTPRequest &request) const override
Creates a new HTTP request handler for the given request.
Definition: HTTPJsonRpcHandler.h:24
HttpResponseRanges GetResponseData() const override
Returns the ranges with raw data belonging to the response.
Definition: HTTPJsonRpcHandler.cpp:113
Definition: HTTPJsonRpcHandler.h:17
Definition: HttpRangeUtils.h:43
Definition: ITransportLayer.h:27
bool CanHandleRequest(const HTTPRequest &request) const override
Checks if the HTTP request handler can handle the given request.
Definition: HTTPJsonRpcHandler.cpp:23
Definition: IHTTPRequestHandler.h:85