|
bref
API 2014 of the Zia HTTP server.
|
Handler called to execute a request. More...
#include <Pipeline.h>
Public Member Functions | |
| virtual bool | inContent (HttpResponse &response, const Buffer &inBuffer)=0 |
| Callback for request body content. | |
| virtual bool | outContent (HttpResponse &response, Buffer &outBuffer)=0 |
| Callback for response body content. | |
Protected Member Functions | |
| virtual | ~IContentRequestHandler () |
| Virtual destructor. | |
Handler called to execute a request.
This handlers take an optional input from the body of the request and generates a response body.
| virtual bref::Pipeline::IContentRequestHandler::~IContentRequestHandler | ( | ) | [inline, protected, virtual] |
Virtual destructor.
The delete() operator should not be called on the IContentRequestHandler instance. Please refer to the dispose() method.
delete() operator from the server code.| virtual bool bref::Pipeline::IContentRequestHandler::inContent | ( | HttpResponse & | response, |
| const Buffer & | inBuffer | ||
| ) | [pure virtual] |
Callback for request body content.
| [out] | response | Where the status code is filled. |
| [in] | inBuffer | A chunk of the request body. |
| true | If the processing is finished. |
| false | If the processing is not finished. |
| virtual bool bref::Pipeline::IContentRequestHandler::outContent | ( | HttpResponse & | response, |
| Buffer & | outBuffer | ||
| ) | [pure virtual] |
Callback for response body content.
| [out] | response | Where the status code is filled. |
| [in] | inBuffer | A buffer containing the generated content. |
| true | If the processing is finished. |
| false | If the processing is not finished. |
1.8.0