libcex  1.0.0
Modern C++11 embedded webserver library
Public Member Functions | Public Attributes | List of all members
cex::FilesystemOptions Struct Reference

Contains all options for the filesystem middleware. More...

#include <filesystem.hpp>

Public Member Functions

 FilesystemOptions ()
 Constructs a new options object with defaultEncoding utf-8 and empty rootPath.
 

Public Attributes

std::string rootPath
 Specifies the root-path on the local filesystem. More...
 
std::string defaultEncoding
 The default encoding set in the Content-Type header.
 

Detailed Description

Contains all options for the filesystem middleware.

Member Data Documentation

◆ rootPath

std::string cex::FilesystemOptions::rootPath

Specifies the root-path on the local filesystem.

The path of request URLs will be appended as relative paths when accessing files.


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