ipfs-chromium
|
#include <library/include/ipfs_client/gw/requestor.h>
Public Types | |
enum class | HandleOutcome : char { NOT_HANDLED = 'N' , PENDING = 'P' , DONE = 'D' , PARALLEL = 'L' , MAYBE_LATER = 'M' } |
using | RequestPtr = ::ipfs::gw::RequestPtr |
Public Member Functions | |
virtual std::string_view | name () const =0 |
void | request (std::shared_ptr< GatewayRequest >) |
Requestor & | or_else (std::shared_ptr< Requestor > p) |
Requestor & | api (std::shared_ptr< Client >) |
void | TestAccess (void *) |
Protected Member Functions | |
virtual HandleOutcome | handle (RequestPtr)=0 |
void | forward (RequestPtr) const |
Static Protected Member Functions | |
static void | definitive_failure (RequestPtr) |
Protected Attributes | |
std::shared_ptr< Client > | api_ |
Interface for classes that respond to IPFSRequest
|
pure virtual |
Implemented in ipfs::gw::MultiGatewayRequestor, ipfs::gw::TerminatingRequestor, ipfs::gw::InlineRequestHandler, ipfs::gw::DnsLinkRequestor, and ipfs::CacheRequestor.