X-Git-Url: http://lists.indexdata.dk/cgi-bin?a=blobdiff_plain;f=http.h;h=d5b1d074cd5988c8f38a7194bbcc56178f407a32;hb=ebe50d5e6528e59c30b839f2e9e99825d98b133d;hp=907a19d1f313a15da4f34f9c91df8eebdc13243c;hpb=d7967e62bb987396444404f5e6ed59bbda5f5131;p=pazpar2-moved-to-github.git diff --git a/http.h b/http.h index 907a19d..d5b1d07 100644 --- a/http.h +++ b/http.h @@ -18,8 +18,16 @@ struct http_channel struct http_buf *oqueue; char version[10]; struct http_proxy *proxy; + enum + { + Http_Idle, + Http_Busy // Don't process new HTTP requests while we're busy + } state; NMEM nmem; WRBUF wrbuf; + struct http_request *request; + struct http_response *response; + struct http_channel *next; // for freelist }; struct http_proxy // attached to iochan for proxy connection @@ -68,6 +76,7 @@ void http_addheader(struct http_response *r, const char *name, const char *value char *http_argbyname(struct http_request *r, char *name); char *http_headerbyname(struct http_request *r, char *name); struct http_response *http_create_response(struct http_channel *c); +void http_send_response(struct http_channel *c); /* * Local variables: