--- a/src/server/proxy/httpclient.h Wed Feb 25 23:14:47 2026 +0100 +++ b/src/server/proxy/httpclient.h Thu Feb 26 21:35:53 2026 +0100 @@ -141,6 +141,10 @@ void (*response_finished)(HttpClient *, void *); void *response_finished_userdata; + /* + * The last event handler, that processed the http client + */ + Event *last_event; // internals HttpParser *parser; @@ -219,7 +223,7 @@ /* * Handle HttpClient IO and process the request/response */ -int http_client_process(HttpClient *client); +int http_client_process(HttpClient *client, Event *event); /* * Adds message data, that will be sent to client->socketfd. This function