Skip to content

Class

Application

Core type representing a Vapor application.
final class Application

Topics

Classes

Structures

Initializers

Instance Properties

Instance Methods

  • asyncBoot()
    Called when the applications starts up, will trigger the lifecycle handlers. The asynchronous version of boot()
  • asyncShutdown()
  • boot()
  • execute()
    Starts the Application asynchronous using the startup() method, then waits for any running tasks to complete. If your application is started without arguments, the default argument is used.
  • run()
    Starts the Application using the start() method, then waits for any running tasks to complete. If your application is started without arguments, the default argument is used.
  • shutdown()
  • start()
    When called, this will execute the startup command provided through an argument. If no startup command is provided, the default is used. Under normal circumstances, this will start running Vapor’s webserver.
  • startup()
    When called, this will asynchronously execute the startup command provided through an argument. If no startup command is provided, the default is used. Under normal circumstances, this will start running Vapor’s webserver.

Type Methods

Enumerations

Default Implementations

Relationships

Conforms To

  • RoutesBuilder
  • Swift.Copyable
  • Swift.Escapable
  • Swift.Sendable
  • Swift.SendableMetatype