ipfs-chromium
Public Member Functions | List of all members
ipfs::gw::InlineRequestHandler Class Referencefinal

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

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

Public Member Functions

HandleOutcome handle (RequestPtr request) override
 
std::string_view name () const override
 
- Public Member Functions inherited from ipfs::gw::Requestor
void request (std::shared_ptr< GatewayRequest >)
 
Requestoror_else (std::shared_ptr< Requestor > p)
 
Requestorapi (std::shared_ptr< Client >)
 
void TestAccess (void *)
 

Additional Inherited Members

- Public Types inherited from ipfs::gw::Requestor
enum class  HandleOutcome : char {
  NOT_HANDLED = 'N' , PENDING = 'P' , DONE = 'D' , PARALLEL = 'L' ,
  MAYBE_LATER = 'M'
}
 
using RequestPtr = ::ipfs::gw::RequestPtr
 
- Protected Member Functions inherited from ipfs::gw::Requestor
void forward (RequestPtr) const
 
- Static Protected Member Functions inherited from ipfs::gw::Requestor
static void definitive_failure (RequestPtr)
 
- Protected Attributes inherited from ipfs::gw::Requestor
std::shared_ptr< Clientapi_
 

Detailed Description

Handles requests for inline requests, i.e. /ipfs/ with hash = identity

Note
The CID contains the response

Member Function Documentation

◆ handle()

HandleOutcome ipfs::gw::InlineRequestHandler::handle ( RequestPtr  request)
overridevirtual
Parameters
requestThe request to try handling
Returns
DONE (after responding) if it was an inline request NOT_HANDLED otherwise

Implements ipfs::gw::Requestor.

◆ name()

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

Implements ipfs::gw::Requestor.


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