Initializerhummingbird 2.15.0Hummingbird
init(fileProvider:urlBasePath:cacheControl:searchForIndexHtml:)
Create FileMiddleware using custom FileProvider.
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