Qore WebUtil Module Reference
1.0
|
this class serves files from the file system based on a root location More...
Public Attributes | |
*string | default_target |
the default target if a URL cannot be satisfied | |
const | Defaults |
default configuration values | |
const | Dirlisting |
dirlisting template | |
const | DirSep = (Unix ? "/" : "\\") |
directory separator character | |
softint | error_level = 0 |
set for error info level More... | |
string | file_root |
root directory for serving files | |
softlist | indexes = (Defaults.IndexTemplate, Defaults.IndexFile) |
indexes for directories; handled in order of appearance | |
hash | template_extensions = Defaults.TemplateExtensions |
file extensions handled as templates | |
const | Unix = (PlatformOS != "Windows") |
flag for UNIX operating systems | |
Additional Inherited Members | |
![]() | |
constructor (int po=TextTemplateBase::DefaultProgramOptions, *code psetup) | |
creates the object with optional Program options More... | |
purge (string tname) | |
this method can be called when a resource is requested that no longer exists in case a template is stored for a file that was deleted | |
hash | render (string tname, string path, date mtime, hash ctx, int code=200, *hash hdr) |
explicitly renders the given template with the given path and context argument More... | |
this class serves files from the file system based on a root location
softint WebUtil::FileHandler::error_level = 0 |
set for error info level