7 #define HTTP_BUF_SIZE 4096
11 struct http_buf *next;
17 struct http_buf *iqueue;
18 struct http_buf *oqueue;
20 struct http_proxy *proxy;
24 Http_Busy // Don't process new HTTP requests while we're busy
28 struct http_request *request;
29 struct http_response *response;
30 struct http_channel *next; // for freelist
33 struct http_proxy // attached to iochan for proxy connection
36 struct http_channel *channel;
37 struct http_buf *oqueue;
44 struct http_header *next;
51 struct http_argument *next;
56 struct http_channel *channel;
57 char http_version[20];
60 struct http_header *headers;
61 struct http_argument *arguments;
68 struct http_channel *channel;
69 struct http_header *headers;
73 void http_set_proxyaddr(char *url);
74 void http_init(const char *addr);
75 void http_addheader(struct http_response *r, const char *name, const char *value);
76 char *http_argbyname(struct http_request *r, char *name);
77 char *http_headerbyname(struct http_request *r, char *name);
78 struct http_response *http_create_response(struct http_channel *c);
79 void http_send_response(struct http_channel *c);
84 * indent-tabs-mode: nil
86 * vim: shiftwidth=4 tabstop=8 expandtab