History

now answers GET requests

John Floren committed 14 years ago

Commit 4e560141 parent c4e79de5 files · +211 −16Browse files

Showing the changes to dat.h (1 of 5 files). Show all

Unified · Split

dat.h+23−0
@@ -5,3 +5,26 @@ enum · 4 unmodified lines
5 BufSize = 32*1024,5 BufSize = 32*1024,
6 MaxLineLen = 1024,6 MaxLineLen = 1024,
7};7};
8
9enum Method
10{
11 GET,
12 UNSUPPORTED
13};
14
15enum Type
16{
17 SIMPLE,
18 FULL
19};
20
21typedef struct Request {
22 enum Method method;
23 enum Type type;
24 char *referer;
25 char *useragent;
26 char *resource;
27 int status;
28} Request;
29
30static char* root = "/tmp";