Protocols
The following protocols are available globally.
-
Defines the protocol which all Kitura compliant middleware must implement.
Middleware are class or struct based request handlers. They are often generic in nature and not tied to a specific request.
See moreDeclaration
Swift
public protocol RouterMiddleware
-
A protocol for providing a custom method for setting the headers of the response of static file serving middleware.
See moreDeclaration
Swift
public protocol ResponseHeadersSetter