4#ifndef _Stroika_Framework_WebServer_FileSystemRequestHandler_h_
5#define _Stroika_Framework_WebServer_FileSystemRequestHandler_h_ 1
7#include "Stroika/Frameworks/StroikaPreComp.h"
12#include "Stroika/Foundation/IO/Network/HTTP/CacheControl.h"
14#include "Stroika/Frameworks/WebServer/Router.h"
41 static const Options kDefaultOptions;
50 struct FileSystemRequestHandler::Options {
61 optional<String> fURLPrefix2Strip;
68 optional<Sequence<filesystem::path>> fDefaultIndexFileNames;
84 optional<ETagStrategy> fETagStrategy;
88 static constexpr ETagStrategy kDefault_ETagStrategy{eDigest};
113 optional<Sequence<pair<RegularExpression, CacheControl>>> fCacheControlSettings;
121 optional<filesystem::path> fFallbackFile;
123 inline const FileSystemRequestHandler::Options FileSystemRequestHandler::kDefaultOptions;
132#include "FileSystemRequestHandler.inl"
RegularExpression is a compiled regular expression which can be used to match on a String class.
String is like std::u32string, except it is much easier to use, often much more space efficient,...
A generalization of a vector: a container whose elements are keyed by the natural numbers.