Instance Method (Default implementation)vapor 4.106.3Vapor
shutdown
A default implementation for those servers that haven’t migrated yet
Server.swift:77This declaration is deprecated: Implement an async version of this yourself
func shutdown() async
Implements
func shutdown(
) Shut the server down.
func shutdown(
) async Shut the server down.
Other members in extension
Instance members
func start(
) throws Start the server with its default configuration, listening over a regular TCP socket.
Show obsolete interfaces (3)
Hide obsolete interfaces
func start(address: BindAddress?
) throws A default implementation that throws
ServerStartError.unsupportedAddress
for.unixDomainSocket(path:)
ifstart(address:)
is not implemented by the conforming type, or calls the deprecated.start(hostname:port:)
method for other cases.func start(address: BindAddress?
) async throws A default implementation for those servers that haven’t migrated yet
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.