|
bref
API 2014 of the Zia HTTP server.
|
Contains hooks to run for content generation. More...
Classes | |
| class | bref::Pipeline::IContentRequestHandler |
| Handler called to execute a request. More... | |
Typedefs | |
| typedef Function < IContentRequestHandler *(const Environment &environment, const HttpRequest &request, HttpResponse &response, FdType &fd)> | bref::Pipeline::ContentHook |
| Generate Pipeline::ContentRequestHandler. | |
Variables | |
| std::list< std::pair < ContentHook, float > > | bref::Pipeline::contentHooks |
| List of content hooks. | |
Contains hooks to run for content generation.
This is where modules like CGI, static pages, directory listing, ... should be plugged.
| typedef Function<IContentRequestHandler *(const Environment & environment, const HttpRequest & request, HttpResponse & response, FdType & fd)> bref::Pipeline::ContentHook |
Generate Pipeline::ContentRequestHandler.
| [out] | fd | If you set this param in your Hook, the server will register your fd in its event system (kqueue / epoll / select) and call back your handle on new activity. |
| std::list<std::pair<ContentHook, float> > bref::Pipeline::contentHooks |
List of content hooks.
Only one content hook can be used for a given request, the content hook with the highest priority should be choosed by the server.
1.8.0