Vapor Documentation Beta

Class Application

public final class Application
%3 Application Application RoutesBuilder RoutesBuilder Application->RoutesBuilder

Nested Types

Application.Lifecycle
Application.Locks
Application.EventLoopGroupProvider
Application.Clients
Application.Core
Application.Running
Application.HTTP
Application.Password
Application.Passwords
Application.Responder
Application.Servers
Application.Sessions
Application.Views

Conforms To

RoutesBuilder

Initializers

init(_:​_:​)

public init(_ environment: Environment = .development, _ eventLoopGroupProvider: EventLoopGroupProvider = .createNew)

Properties

environment

var environment: Environment

event​Loop​Group​Provider

let eventLoopGroupProvider: EventLoopGroupProvider

event​Loop​Group

let eventLoopGroup: EventLoopGroup

storage

var storage: Storage

did​Shutdown

var didShutdown: Bool

logger

var logger: Logger

lifecycle

var lifecycle: Lifecycle

locks

var locks: Locks

sync

var sync: Lock

clients

var clients: Clients

client

var client: Client

console

var console: Console

commands

var commands: Commands

thread​Pool

var threadPool: NIOThreadPool

fileio

var fileio: NonBlockingFileIO

allocator

var allocator: ByteBufferAllocator

running

var running: Running?

directory

var directory: DirectoryConfiguration

http

var http: HTTP

middleware

var middleware: Middlewares

password

var password: Password

passwords

var passwords: Passwords

responder

var responder: Responder

routes

var routes: Routes

servers

var servers: Servers

server

var server: Server

sessions

var sessions: Sessions

views

var views: Views

view

var view: ViewRenderer

Methods

run()

public func run() throws

start()

public func start() throws

boot()

public func boot() throws

shutdown()

public func shutdown()

add(_:​)

public func add(_ route: Route)