pgator

Contains http logic

License
Subject to the terms of the MIT license, as written in the included LICENSE file.
Authors
Zaramzan

class  Application;

Main program class

Warning:
Don't run at once more than one instance of server. Workaround for vibe.d lack of handler removing relies on that there is one running server at current moment.
Authors
Zaramzan

shared this(shared ILogger logger, immutable Options options, immutable AppConfig config);

Construct Application from ILogger, Options and AppConfig


shared int  run();

runs the server


shared shared(Application)  restart();

 restart the server

Recreates new application object with refreshed config. New app reuses old logger, old application is terminated.


shared void  finalize(bool finalizeLog = true);

Stops the server from any thread.

Parameters
bool finalizeLog if true, then inner logger wouldn't be finalized

shared shared(ILogger)  logger();

Return current application  logger