dango.web.controllers.generic

Модуль контроллера генерирующий обработчики в compile time на основе интерфейсов

Public Imports

dango.web.controller
public import dango.web.controller;

Members

Aliases

Delete
alias Delete = Handler!(HTTPMethod.DELETE)
Undocumented in source.
Get
alias Get = Handler!(HTTPMethod.GET)
Undocumented in source.
Post
alias Post = Handler!(HTTPMethod.POST)
Undocumented in source.
Put
alias Put = Handler!(HTTPMethod.PUT)
Undocumented in source.

Classes

GenericWebController
class GenericWebController(CType)

Базовый класс web контроллера

GenericWebControllerFactory
class GenericWebControllerFactory(CType)

Фабрика для контроллера на основе кодогенерации

Functions

Controller
ControllerAttribute!W Controller(string prefix)

Аннотация для обозначение объекта контроллера

defaultHandler
HTTPServerRequestDelegate defaultHandler(C controller, HType hdl)

Обертка над обработчиками по умочлчанию

Structs

ControllerAttribute
struct ControllerAttribute(alias W)

Аннотация для обозначение объекта контроллера

Handler
struct Handler(HTTPMethod M = HTTPMethod.GET)

Аннотация для обозначения метода для обработки входящих запросов

Meta

Date

Date: 2020-08-01

License

Subject to the terms of the BSD 3-Clause License, as written in the included LICENSE.md file.

Authors

<m.galanin@milofon.pro> Maksim Galanin