tinyhttp
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
tinyhttp::SDFileNameMgr Class Reference

The file names on an SD can only be 8 characters long. More...

#include <SDFileNameMgr.h>

Public Member Functions

 SDFileNameMgr (MimeExtension *extensions=nullptr)
 
 SDFileNameMgr (SDFileNameMgr &mgr)
 
virtual StrgetName (const char *originalName, const char *mime="text/html")
 
const char * root ()
 
void setRootUrl (const char *root_url)
 

Protected Member Functions

void split ()
 

Protected Attributes

MimeResolver mime_resolver
 
StrExt name_buffer = StrExt(40)
 
StrExt root_url = StrExt(80)
 

Detailed Description

The file names on an SD can only be 8 characters long.

In order to support longer names we automatically split up the file name into directories and add a file extension to be able to recover the mime type


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