summaryrefslogtreecommitdiffhomepage
path: root/http.h
diff options
context:
space:
mode:
Diffstat (limited to 'http.h')
-rw-r--r--http.h40
1 files changed, 0 insertions, 40 deletions
diff --git a/http.h b/http.h
index 7d98222..52a1822 100644
--- a/http.h
+++ b/http.h
@@ -1,31 +1,5 @@
#pragma once
-struct span
-{
- int start;
- int length;
-};
-
-struct header
-{
- struct span name;
- struct span value;
-};
-
-struct request
-{
- int (* step)(struct request *);
- char * data;
- int length;
- int position;
- struct span method;
- struct span path;
- struct span version;
- struct header * headerv;
- int headerc;
- struct span body;
-};
-
enum status
{
STATUS_OK = 200,
@@ -38,17 +12,3 @@ enum status
};
extern const char * status_str[];
-
-struct request * new_request(void);
-void free_request(struct request *);
-
-int respond_only_status(int, enum status);
-int respond_with_body(int, enum status, const char *, int);
-
-int parse_request(int, struct request **);
-
-int parse_step_method(struct request *);
-int parse_step_path(struct request *);
-int parse_step_version(struct request *);
-int parse_step_header_name(struct request *);
-int parse_step_header_value(struct request *);