Instance Methodvapor 4.114.1Vapor
respond(to:chainingTo:)
SessionsMiddleware.swift:35func respond(to request: Request, chainingTo next: Responder) -> EventLoopFuture<Response>
func respond(to request: Request, chainingTo next: Responder) -> EventLoopFuture<Response>
s5Vapor18SessionsMiddlewareC7respond2to10chainingTo7NIOCore15EventLoopFutureCyAA8ResponseCGAA7RequestC_AA9Responder_ptF
What are these?78ZR7
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 SessionsMiddleware
Uses HTTP cookies to save and restore sessions for connecting clients.
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(session: SessionDriver, configuration: SessionsConfiguration = .default())
Creates a new SessionsMiddleware
.
let session: SessionDriver
Session store.