Required Instance Methodvapor 4.114.1Vapor
shutdown
Shut the server down.
func shutdown() async
Shut the server down.
func shutdown() async
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 Server : Sendable
var onShutdown: EventLoopFuture<Void> { get }
func shutdown()
Shut the server down.
func start(address: BindAddress?) throws
Start the server with the specified address.
func start(address: BindAddress?) async throws
Start the server with the specified address.
func start(hostname: String?, port: Int?) throws
Start the server with the specified hostname and port, if provided. If left blank, the server will be started with its default configuration.
func shutdown() async
A default implementation for those servers that haven’t migrated yet