Skip to content
Uplusware edited this page Jan 8, 2017 · 30 revisions

Use extension, you can design your application, for example:

  • HTTP Reverse Proxy
  • Self-defined script

ext_request

void* ext_request(CHttp* m_session, const char * action);

This function will be called after http request has been recieved.

ext_response

void* ext_response(CHttp* m_session, const char * action, Htdoc* doc);

This function will be called before http response will be sent.

ext_finish

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.

Clone this wiki locally