ResponseHeadersSetter
public protocol ResponseHeadersSetter
A protocol for providing a custom method for setting the headers of the response of static file serving middleware.
-
Set the headers of the response
Declaration
Swift
func setCustomResponseHeaders(response: RouterResponse, filePath: String, fileAttributes: [FileAttributeKey : Any])Parameters
responsethe router response
filePaththe path of the file being served
fileAttributesan array of attributes of the file being served
View on GitHub
ResponseHeadersSetter Protocol Reference