Skip to content

You're viewing documentation for a pre-release version. View the latest stable version

Class

FileMiddleware

Serves static files from a public directory.
final class FileMiddleware

Overview

Use app.makeFileMiddleware() to serve the application’s Public directory and share its ETag hash cache.

Topics

Structures

Instance Methods

Relationships

Conforms To

  • Middleware
  • Swift.Sendable
  • Swift.SendableMetatype