-
Notifications
You must be signed in to change notification settings - Fork 4
Extension
Uplusware edited this page Aug 21, 2016
·
30 revisions
Use extension, you can design your application, for example:
-
HTTP Reverse Proxy
-
Self-defined script
-
Workload balance component
-
void* ext_request(CHttp* m_session, const char * action);
This function will be called after http request has been recieved.
void* ext_response(CHttp* m_session, const char * action, Htdoc* doc);
This function will be called before http response will be sent.
void* ext_finish(CHttp* m_session, const char * action, Htdoc* doc);
This function will be called after the whole http trip is finished. Some clean work can be done in it.
- m_session->SetExtentionData(...) and m_session->GetExtentionData() can be used to store the self-defined user data in extension.