ipfs-chromium
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
ipfs::gw::GatewayRequest Class Reference
Inheritance diagram for ipfs::gw::GatewayRequest:
Inheritance graph
[legend]
Collaboration diagram for ipfs::gw::GatewayRequest:
Collaboration graph
[legend]

Public Types

using BytesReceivedHook = std::function< void(std::string_view, ByteView, ipld::BlockSource const &)>
 

Public Member Functions

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< HttpRequestDescriptiondescribe_http (std::string_view) const
 
std::string debug_string () const
 
void orchestrator (std::shared_ptr< Partition > const &)
 
bool cachable () const
 
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< GatewayRequestfromIpfsPath (SlashDelimited)
 

Public Attributes

GatewayRequestType type = GatewayRequestType::Zombie
 
std::string main_param
 CID, IPNS name, hostname.
 
std::string path
 For CAR requests.
 
std::shared_ptr< IpfsRequestdependent
 
std::optional< Cidcid
 
short parallel = 0
 
std::string affinity
 
flat_set< std::string > failures
 

The documentation for this class was generated from the following file: