summaryrefslogtreecommitdiff
path: root/http.h
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2016-12-25 10:14:11 +0100
committertomsmeding <tom.smeding@gmail.com>2016-12-25 10:14:11 +0100
commitef28fcb0f59d11bdf9f574a999045bc24ca40e18 (patch)
tree5e998366f3ef2f2be88216d28631656c84036e41 /http.h
Initial
Diffstat (limited to 'http.h')
-rw-r--r--http.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/http.h b/http.h
new file mode 100644
index 0000000..c0cad54
--- /dev/null
+++ b/http.h
@@ -0,0 +1,16 @@
+#pragma once
+
+
+typedef char *Header[2];
+
+typedef struct Headers{
+ char *method,*url,*version;
+
+ int nheaders;
+ Header *headers;
+} Headers;
+
+
+void free_headers(Headers *headers);
+
+Headers* http_get_headers(int sock);