Skip to content
Download

build

mach::AppBuilder::build

Builds the application.

Builds and returns the application instance.

[[nodiscard]] App build();

A reference to the current AppBuilder instance.

Exception Condition
std::logic_error Thrown if the application configuration is invalid or incomplete.
  • The application is built using the configuration present when this method is called.
  • The builder should not be modified after this method has been called.

This method is not thread-safe and should only be called during application configuration, before the application starts handling requests.

auto app = builder.build();
Name Description
App Represents a Mach application.
App::run Starts the application.