controllerHandleFormat

The format for controller handlers.

static if(isWebServer)
enum controllerHandleFormat = q{ if (!super.rawGenerate) { auto controllerResult = controller.handle(); if (controllerResult == Status.notFound) { client.notFound(); } else if (controllerResult == Status.unauthorized) { client.unauthorized(); } else if (controllerResult == Status.end) { return null; } } };

Meta