Skip to content

StaticRequestHandler

詳細情報

メンバー

StaticRequestHandler()

StaticRequestHandler::StaticRequestHandler(FS &fs, const char *path, const char *uri, const char *cache_header)

引数

  • FS & fs
  • constchar * path
  • constchar * uri
  • constchar * cache_header

canHandle()

bool StaticRequestHandler::canHandle(HTTPMethod requestMethod, String requestUri) override

引数

  • HTTPMethod requestMethod
  • String requestUri

戻り値

bool

handle()

bool StaticRequestHandler::handle(WebServer &server, HTTPMethod requestMethod, String requestUri) override

引数

  • WebServer& server
  • HTTPMethod requestMethod
  • String requestUri

戻り値

bool

getContentType()

static String StaticRequestHandler::getContentType(const String &path)

引数

  • constString & path

戻り値

String