-
Notifications
You must be signed in to change notification settings - Fork 0
HTMLKitErrorMiddleware
MatsMoll edited this page Nov 18, 2022
·
2 revisions
// Can represent a path e.g a String
or a Identifiable
object
/ Some extensions only available in the Vapor code
/ Some extensions only available in the iOS code
Captures all errors and transforms them into an internal server error.
public struct HTMLKitErrorMiddleware<F: HTMLPage, S: HTMLPage>: Middleware
Middleware
Create a new ErrorMiddleware for the supplied pages.
public init(notFoundPage: F.Type, serverErrorTemplate: S.Type, ignorePath: String)
Create a new ErrorMiddleware
public init(ignorePath: String)
See Middleware.respond
public func respond(to req: Request, chainingTo next: Responder) -> EventLoopFuture<Response>
Generated at 2022-11-18T09:51:33+0000 using swift-doc 1.0.0-rc.1.