LEVIATHAN v962456e · 962456eee1

atlantis · Http

class StaticFiles

since 0.1.0-alpha.1linux

Constructors

new

new(string root, string prefix)

Fields

cacheControl

string cacheControl

prefix

string prefix

root

string root

strict

bool strict

types

Map<string, string> types

Methods

contentType

contentType(string name) -> string

etagMatches

etagMatches(string inm, string etag) -> bool

extOf

extOf(string name) -> string

handle

handle(Context c, (Context) => HttpResponse next) -> HttpResponse

initTypes

initTypes() -> void

missOr

missOr(Context c, (Context) => HttpResponse next) -> HttpResponse

mw

serve

serve(Context c, string full, bool head) -> HttpResponse

setCacheControl

setCacheControl(string cc) -> StaticFiles

setStrict

setStrict(bool s) -> StaticFiles