src/server/proxy/httpclient.h

changeset 707
5fb102d2c745
parent 706
df64b4b79912
equal deleted inserted replaced
706:df64b4b79912 707:5fb102d2c745
139 * void response_finished(HttpClient *client, void *userdata) 139 * void response_finished(HttpClient *client, void *userdata)
140 */ 140 */
141 void (*response_finished)(HttpClient *, void *); 141 void (*response_finished)(HttpClient *, void *);
142 void *response_finished_userdata; 142 void *response_finished_userdata;
143 143
144 /*
145 * The last event handler, that processed the http client
146 */
147 Event *last_event;
144 148
145 // internals 149 // internals
146 HttpParser *parser; 150 HttpParser *parser;
147 netbuf buffer; 151 netbuf buffer;
148 152
217 int http_client_start(HttpClient *client); 221 int http_client_start(HttpClient *client);
218 222
219 /* 223 /*
220 * Handle HttpClient IO and process the request/response 224 * Handle HttpClient IO and process the request/response
221 */ 225 */
222 int http_client_process(HttpClient *client); 226 int http_client_process(HttpClient *client, Event *event);
223 227
224 /* 228 /*
225 * Adds message data, that will be sent to client->socketfd. This function 229 * Adds message data, that will be sent to client->socketfd. This function
226 * should only be called when processing websockets. 230 * should only be called when processing websockets.
227 */ 231 */

mercurial