Fantom

 

const class

webmod::FileMod

sys::Obj
  web::WebMod
    webmod::FileMod

FileMod is a web module which publishes a file or directory.

See pod doc

Slots

fileSource

const File? file := noFile

File or directory to publish. This field must be configured in the constructor's it-block.

makeSource

new make(|This|? f)

Constructor with it-block.

onServiceSource

override Void onService()

Overrides web::Weblet.onService

Doc inherited from web::Weblet.onService

Service a web request. The default implementation routes to onGet, onPost, etc based on the request's method.