ipfs-chromium
|
#include <include/ipfs_client/gw/gateway_request.h>
Public Types | |
using | BytesReceivedHook = std::function< void(std::string_view, ByteView, ipld::BlockSource const &)> |
Public Member Functions | |
std::optional< Cid > const & | cid () const |
void | cid (Cid c) |
std::string | url_suffix () const |
std::string_view | accept () const |
std::string_view | identity_data () const |
short | timeout_seconds () const |
bool | is_http () const |
std::optional< std::size_t > | max_response_size () const |
std::optional< HttpRequestDescription > | describe_http (std::string_view) const |
std::string | debug_string () const |
void | orchestrator (std::shared_ptr< Partition > const &) |
bool | cachable () const |
std::string_view | root_component () const |
void | root_component (std::string_view) |
bool | RespondSuccessfully (std::string_view, std::shared_ptr< Client > const &api, ipld::BlockSource src, std::string_view roots="", bool *valid=nullptr) |
void | Hook (BytesReceivedHook) |
bool | PartiallyRedundant () const |
std::string | Key () const |
bool | Finished () const |
Static Public Member Functions | |
static std::shared_ptr< GatewayRequest > | fromIpfsPath (SlashDelimited ipfs_path) |
Public Attributes | |
GatewayRequestType | type = GatewayRequestType::Zombie |
std::string | path |
For CAR requests. | |
std::shared_ptr< IpfsRequest > | dependent |
short | parallel = 0 |
std::string | affinity |
std::unordered_set< std::string > | failures |
Information about a request that needs to be sent to an IPFS HTTP Gateway
using ipfs::gw::GatewayRequest::BytesReceivedHook = std::function<void(std::string_view, ByteView, ipld::BlockSource const&)> |
Type for callbacks for when bytes are received
std::string_view ipfs::gw::GatewayRequest::root_component | ( | ) | const |