Instance Methodvapor 4.114.1Vapor
respond(to:chainingTo:)
RouteLoggingMiddleware.swift:13func respond(to request: Request, chainingTo next: Responder) -> EventLoopFuture<Response>
func respond(to request: Request, chainingTo next: Responder) -> EventLoopFuture<Response>
s5Vapor22RouteLoggingMiddlewareC7respond2to10chainingTo7NIOCore15EventLoopFutureCyAA8ResponseCGAA7RequestC_AA9Responder_ptF
What are these?3X8MG
import Vapor
Vapor is a framework for building server applications, APIs and websites in Swift. It provides a safe, performant and scalable foundation for building large complex backends.
final class RouteLoggingMiddleware
Emits a log message containing the request method and path to a Request
’s logger. The log level of the message is configurable.
final class Request
Represents an HTTP request in an application.
protocol Responder : Sendable
final class EventLoopFuture<Value>
Holder for a result that will be provided later.
final class Response
An HTTP response from a server back to the client.
init(logLevel: Logger.Level = .info)
let logLevel: Logger.Level