Options
All
  • Public
  • Public/Protected
  • All
Menu
     

Interface Folder

A plain-object that describes a Folder (located in ./) for file-serving.

Hierarchy

  • Folder

Index

Properties

Properties

Folder

Folder: string

The name of the Folder (i.e: ./${folder}).

Optional Age

Age: number

The maximum time -- in seconds -- that the files served from this folder will be allowed to be cache for.

default

3600

Optional Matcher

Matcher: RegExp

A RegexP pattern that determines the files within this folder that are allowed to be served.

default

/?(?:\w+=.+)$/

Optional Headers

Headers: function

A callback that takes a File and processes appropriate HTTP-Headers based on your needs

Type declaration

    • (file: File): object
    • Parameters

      • file: File

      Returns object

      • [headerName: string]: string