Options
All
  • Public
  • Public/Protected
  • All
Menu

Options for staticAssets

Hierarchy

  • StaticAssetsOptions

Index

Properties

acceptRanges?: boolean

If it is set to false, no Accept-Ranges header would be sent and the Range request headers would not be used. Defaults to true

fileNotFound?: HttpListener<Empty>

Would be called if a file was not found at all.

index?: string

If a directory is requested, it would attempt to load this file inside of that directory. Defaults to index.html To disable it set to undefined

indexNotFound?: HttpListener<Empty>

Would be called if a directory was requested, but index file was not found (or was disabled with index: undefined).

Generated using TypeDoc