Structurevapor 4.114.1Vapor
AsyncBasicResponder
A basic, async closure-based Responder
.
struct AsyncBasicResponder
A basic, async closure-based Responder
.
struct AsyncBasicResponder
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.
protocol AsyncResponder : Responder
protocol Responder : Sendable
protocol Sendable
init(closure: @escaping (Request) async throws -> Response)
Create a new BasicResponder
.
func respond(to request: Request) async throws -> Response
func respond(to request: Request) -> EventLoopFuture<Response>