Sane C++ Libraries
C++ Platform Abstraction Libraries
Loading...
Searching...
No Matches
SC::HttpAsyncFileServerOptions Struct Reference

Options controlling optional HttpAsyncFileServer semantics. More...

#include <HttpAsyncFileServer.h>

Public Attributes

StringSpan spaFallbackPath = {}
 Optional SPA fallback path. The StringSpan must outlive the file server.
 
bool enableValidators = true
 Enables Last-Modified / ETag validators (default: true).
 
bool enableRangeRequests = true
 Enables byte range requests once supported (default: true).
 
bool enableUploads = true
 Enables PUT/POST uploads (default: true).
 
size_t maxUploadBytes = 0
 Rejects Content-Length uploads larger than this value. Zero means unlimited.
 

Detailed Description

Options controlling optional HttpAsyncFileServer semantics.

Member Data Documentation

◆ enableRangeRequests

bool SC::HttpAsyncFileServerOptions::enableRangeRequests = true

Enables byte range requests once supported (default: true).

◆ enableUploads

bool SC::HttpAsyncFileServerOptions::enableUploads = true

Enables PUT/POST uploads (default: true).

◆ enableValidators

bool SC::HttpAsyncFileServerOptions::enableValidators = true

Enables Last-Modified / ETag validators (default: true).

◆ maxUploadBytes

size_t SC::HttpAsyncFileServerOptions::maxUploadBytes = 0

Rejects Content-Length uploads larger than this value. Zero means unlimited.

◆ spaFallbackPath

StringSpan SC::HttpAsyncFileServerOptions::spaFallbackPath = {}

Optional SPA fallback path. The StringSpan must outlive the file server.


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