CustomCgiDispatcherMain

Allows for a generic DispatcherMain with custom arguments. Note you can use defaultMaxContentLength as the second argument if you like.

  1. mixintemplate CustomCgiDispatcherMain(CustomCgi, size_t maxContentLength, Presenter, DispatcherArgs...)
    mixin template CustomCgiDispatcherMain (
    CustomCgi
    size_t maxContentLength
    Presenter
    DispatcherArgs...
    ) {}
  2. mixintemplate CustomCgiDispatcherMain(CustomCgi, size_t maxContentLength, DispatcherArgs...)

Members

Functions

handler
void handler(Cgi cgi)

Request handler that creates the presenter then forwards to the dispatcher function. Renders 404 if the dispatcher did not handle the request.

Variables

activePresenter
Presenter activePresenter;

Handler to the generated presenter you can use from your objects, etc.

Meta

History

Added May 13, 2023 (dub v11.0)