Skip to content

Class

ServeCommand

Boots the application’s server. Listens for SIGINT and SIGTERM for graceful shutdown.
final class ServeCommand

Overview

$ swift run Run serve
Server starting on http://localhost:8080

Topics

Structures

Instance Properties

Instance Methods

Enumerations

  • enum Error
    Errors that may be thrown when serving a server

Relationships

Conforms To

  • ConsoleKitCommands.AnyAsyncCommand
  • ConsoleKitCommands.AsyncCommand
  • Swift.Sendable
  • Swift.SendableMetatype