-
Notifications
You must be signed in to change notification settings - Fork 4
Extension
Use extension, you can design your application, for example:
- HTTP Reverse Proxy
- Self-defined script
void* ext_request(CHttp* http_session, const char * name, const char * description, const char * parameters, BOOL* skip);
This function will be called after http request has been recieved.
void* ext_response(CHttp* http_session, const char * name, const char * description, const char * parameters, Htdoc* doc);
This function will be called before http response will be sent.
void* ext_finish(CHttp* http_session, const char * name, const char * description, const char * parameters, Htdoc* doc);
This function will be called after the whole http trip is finished.
Some resource(heap memory, file descriptor ...) clean work can be done in it.
void CHttp::SetExtentionData(void* extdata)
void* CHttp::GetExtentionData()
Used to store the self-defined user data in extension.