ae v0.0.2728 (2020-08-02T06:18:06Z)
Home
Dub
Repo
HttpResponseEx.serveFile
ae
net
http
responseex
HttpResponseEx
Send a file from the disk
class
HttpResponseEx
HttpResponseEx
serveFile
(
string
path
,
string
fsBase
,
bool
enableIndex
= false
,
string
urlBase
= "/"
)
Meta
Source
See Implementation
ae
net
http
responseex
HttpResponseEx
functions
authorize
cacheForever
disableCache
dup
redirect
serveData
serveFile
serveJson
serveText
setRefresh
writeError
writePage
writePageContents
static functions
checkPath
detectMime
getStatusExplanation
loadTemplate
parseTemplate
static variables
contentTemplate
errorTemplate
pageTemplate
variables
errorTokens
jsonCallback
pageTokens
Send a file from the disk