ipfs-chromium
Public Member Functions | List of all members
ipfs ::redirects::Directive Class Reference

#include <library/src/ipfs_client/redirects.h>

Public Member Functions

 Directive (std::string_view from, std::string_view to, int status)
 
std::uint16_t rewrite (std::string &) const
 
std::string error () const
 
bool valid () const
 

Detailed Description

A directive (a non-empty line without comments) inside a _redirects file

Constructor & Destructor Documentation

◆ Directive()

ipfs ::redirects::Directive::Directive ( std::string_view  from,
std::string_view  to,
int  status 
)
Parameters
frompath/glob to match against
topartial path to replace from with
statusHTTP status to use in successful response that hit this rule

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