bref
API 2014 of the Zia HTTP server.
|
Where the AModule classes register their hooks. More...
#include <Pipeline.h>
Classes | |
class | IContentRequestHandler |
Handler called to execute a request. More... | |
Public Types | |
typedef Function< bool(HttpResponse &response, const Environment &environment)> | ConnectionRequestHandler |
A hook for the connection of a client. | |
typedef Function < ConnectionRequestHandler(const Environment &environment)> | ConnectionHook |
Generate a Pipeline::ConnectionRequestHandler. | |
typedef Function< bool(SocketType socket, Buffer &buffer)> | OnReceiveRequestHandler |
The handler to call when there is pending data on a socket. | |
typedef Function < OnReceiveRequestHandler(const Environment &environment)> | OnReceiveHook |
Generate a Pipeline::OnReceiveRequestHandler. | |
typedef Function< bool(SocketType socket, const Buffer &buffer)> | OnSendRequestHandler |
A hook when data need to be sent. | |
typedef Function < OnSendRequestHandler(const Environment &environment)> | OnSendHook |
Generate a Pipeline::OnSendRequestHandler. | |
typedef Function< void(HttpResponse &response, const Buffer &inBuffer, Buffer &outBuffer)> | PostReceiveRequestHandler |
A hook called upon reading data on the socket. | |
typedef Function < PostReceiveRequestHandler(const Environment &environment)> | PostReceiveHook |
Generate a Pipeline::PostRequestHandler. | |
typedef Function < Buffer::const_iterator(HttpResponse &response, const Buffer &buff, HttpRequest &request)> | ParsingRequestHandler |
The handler called to generate an HttpRequest. | |
typedef Function < ParsingRequestHandler(Environment &)> | ParsingHook |
Generate a Pipeline::ParsingRequestHandler. | |
typedef Function< void(HttpResponse &response)> | PostParsingRequestHandler |
Handler called once the request is parsed. | |
typedef Function < PostParsingRequestHandler(const Environment &environment, HttpRequest &httpRequest, HttpResponse &response)> | PostParsingHook |
Generate a Pipeline::PostParsingRequestHandler. | |
typedef Function < IContentRequestHandler *(const Environment &environment, const HttpRequest &request, HttpResponse &response, FdType &fd)> | ContentHook |
Generate Pipeline::ContentRequestHandler. | |
typedef Function< void(HttpResponse &reponse, const Buffer &inBuffer, Buffer &outBuffer)> | PostContentRequestHandler |
Hook to run after the content was generated by contentHooks . | |
typedef Function < PostContentRequestHandler(const Environment &environment, const HttpRequest &request, HttpResponse &response)> | PostContentHook |
Generate Pipeline::PostContentRequestHandler. | |
typedef Function< void(HttpResponse &response, const Buffer &inBuffer, Buffer &outBuffer)> | TransformRequestHandler |
Handler to call after the postContentHooks are executed. | |
typedef Function < TransformRequestHandler(const Environment &environment, const HttpRequest &request, HttpResponse &response)> | TransformHook |
Generate Pipeline::TransformRequestHandler. | |
typedef Function< void(HttpResponse &response, const Buffer &inBuffer, Buffer &outBuffer)> | PreSendRequestHandler |
Handler called before sending data back to the client. | |
typedef Function < PreSendRequestHandler(const Environment &environment, const HttpRequest &request, HttpResponse &response)> | PreSendHook |
Generate Pipeline::PreSendRequestHandler. | |
Public Attributes | |
std::list< std::pair < ConnectionHook, float > > | connectionHooks |
List of connection hooks. | |
std::list< std::pair < OnReceiveHook, float > > | onReceiveHooks |
List of received hooks. | |
std::list< std::pair < OnSendHook, float > > | onSendHooks |
List of hooks to run when data needs to be sent. | |
std::list< std::pair < PostReceiveHook, float > > | postReceiveHooks |
List of post-read hooks. | |
std::list< std::pair < ParsingHook, float > > | parsingHooks |
List of parsing hooks. | |
std::list< std::pair < PostParsingHook, float > > | postParsingHooks |
List of post-parsing hooks. | |
std::list< std::pair < ContentHook, float > > | contentHooks |
List of content hooks. | |
std::list< std::pair < PostContentHook, float > > | postContentHooks |
A list of post-content hooks. | |
std::list< std::pair < TransformHook, float > > | transformHooks |
List of transformation hooks. | |
std::list< std::pair < PreSendHook, float > > | preSendHooks |
A list of pre-send hooks. |