1 #ifndef IPFS_BLOCK_HTTP_REQUEST_H_
2 #define IPFS_BLOCK_HTTP_REQUEST_H_
4 #include <ipfs_client/gw/gateway_request.h>
6 #include <ipfs_client/ctx/http_api.h>
7 #include <vocab/raw_ptr.h>
10 struct ResourceRequest;
11 class SimpleURLLoader;
13 namespace network::mojom {
14 class URLLoaderFactory;
15 class URLResponseHead;
25 std::unique_ptr<network::SimpleURLLoader> loader_;
28 using HttpCompleteCallback = ctx::HttpApi::OnComplete;
37 HttpCompleteCallback callback_;
38 std::string status_line_;
39 ctx::HttpApi::Hdrs header_accessor_ = [](
auto) {
43 void OnResponseHead(GURL
const&, network::mojom::URLResponseHead
const&);
44 void OnResponse(std::shared_ptr<BlockHttpRequest>,
45 std::unique_ptr<std::string> body);
Definition: block_http_request.h:24
Definition: http_request_description.h:12