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
55 BufSize = 32*1024,
66 MaxLineLen = 1024,
77 };
8+
9+enum Method
10+{
11+ GET,
12+ UNSUPPORTED
13+};
14+
15+enum Type
16+{
17+ SIMPLE,
18+ FULL
19+};
20+
21+typedef 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+
30+static char* root = "/tmp";