Skip to content
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

** extern "C" void* ext_request(CHttp* m_session, const char * action); *** this function will be called after http request has been recieved. ** extern "C" void* ext_response(CHttp* m_session, const char * action, Htdoc* doc); *** this function will be called before http response will be sent. ** extern "C" void* ext_finish(CHttp* m_session, const char * action, Htdoc* doc); *** this function will be called after the whole http trip is finished. Eg.: 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.

Clone this wiki locally