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;
25 struct http_proxy // attached to iochan for proxy connection
28 struct http_channel *channel;
29 struct http_buf *oqueue;
36 struct http_header *next;
43 struct http_argument *next;
48 struct http_channel *channel;
49 char http_version[20];
52 struct http_header *headers;
53 struct http_argument *arguments;
60 struct http_channel *channel;
61 struct http_header *headers;
65 void http_set_proxyaddr(char *url);
66 void http_init(int port);
67 void http_addheader(struct http_response *r, const char *name, const char *value);
68 char *http_argbyname(struct http_request *r, char *name);
69 char *http_headerbyname(struct http_request *r, char *name);
70 struct http_response *http_create_response(struct http_channel *c);
75 * indent-tabs-mode: nil
77 * vim: shiftwidth=4 tabstop=8 expandtab