Module

Bucketchain.Static

#Options

type Options = { maxAge :: Seconds, root :: String }

Middleware options.

  • root is root directory.
  • maxAge is max-age of Cache-Control. It should set seconds.

#withStatic

withStatic :: Options -> Middleware

Static file server middleware.

Modules