import { type SendOptions } from "https://deno.land/x/alosaur@v0.31.1/src/static/send.ts";
Properties
Tell the browser the resource is immutable and can be cached
indefinitely. (defaults to false
)
Name of the index file to serve automatically when visiting the root location. (defaults to none)
Try to serve the gzipped version of a file automatically when gzip is
supported by a client and if the requested file with .gz
extension
exists. (defaults to true
).
Try to serve the brotli version of a file automatically when brotli is
supported by a client and if the requested file with .br
extension
exists. (defaults to true
)
If true
, format the path to serve static file servers and not require a
trailing slash for directories, so that you can do both /directory
and
/directory/
. (defaults to true
)