ipfs-chromium
Public Types | Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
ipfs::gw::Requestor Class Referenceabstract

#include <library/include/ipfs_client/gw/requestor.h>

Inheritance diagram for ipfs::gw::Requestor:
Inheritance graph
[legend]
Collaboration diagram for ipfs::gw::Requestor:
Collaboration graph
[legend]

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 >)
 
Requestoror_else (std::shared_ptr< Requestor > p)
 
Requestorapi (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< Clientapi_
 

Detailed Description

Interface for classes that respond to IPFSRequest

Member Function Documentation

◆ name()

virtual std::string_view ipfs::gw::Requestor::name ( ) const
pure virtual
Returns
The requestor's name, for debugging. Typically this is 1:1 with the concrete type.

Implemented in ipfs::gw::MultiGatewayRequestor, ipfs::gw::TerminatingRequestor, ipfs::gw::InlineRequestHandler, ipfs::gw::DnsLinkRequestor, and ipfs::CacheRequestor.


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