Instance Methodvapor 4.114.1Vapor
respond(to:)
Application+Responder.swift:77func respond(to request: Request) -> EventLoopFuture<Response>
func respond(to request: Request) -> EventLoopFuture<Response>
s5Vapor11ApplicationC9ResponderV7respond2to7NIOCore15EventLoopFutureCyAA8ResponseCGAA7RequestC_tF
What are these?3BJGV
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.
struct Responder
final class Application
Core type representing a Vapor application.
final class Request
Represents an HTTP request in an application.
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.
let application: Application
var current: Vapor.Responder { get }
var `default`: Vapor.Responder { get }
func use(_ provider: Provider)
@preconcurrency func use(_ factory: @escaping (Application) -> (Vapor.Responder))
struct Provider