atlantis · Http
class StaticFiles
since 0.1.0-alpha.1linux
Constructors
new
new(string root, string prefix)Fields
cacheControl
string cacheControlprefix
string prefixroot
string rootstrict
bool stricttypes
Map<string, string> typesMethods
contentType
contentType(string name) -> stringetagMatches
etagMatches(string inm, string etag) -> boolextOf
extOf(string name) -> stringhandle
handle(Context c, (Context) => HttpResponse next) -> HttpResponseinitTypes
initTypes() -> voidmissOr
missOr(Context c, (Context) => HttpResponse next) -> HttpResponsemw
mw() -> (Context, (Context) => HttpResponse) => HttpResponseserve
serve(Context c, string full, bool head) -> HttpResponsesetCacheControl
setCacheControl(string cc) -> StaticFilessetStrict
setStrict(bool s) -> StaticFiles