init(fileProvider:urlBasePath:cacheControl:searchForIndexHtml:)

Create FileMiddleware using custom FileProvider.

FileMiddleware.swift:92
init(fileProvider: Provider, urlBasePath: String? = nil, cacheControl: CacheControl = .init([]), searchForIndexHtml: Bool = false)

Parameters

fileProvider

File provider

urlBasePath

Prefix to remove from request URL

cacheControl

What cache control headers to include in response

searchForIndexHtml

Should we look for index.html in folders