summaryrefslogtreecommitdiffhomepage
path: root/http.h
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2020-05-05 23:56:29 +0200
committerAki <please@ignore.pl>2020-05-05 23:56:29 +0200
commit048525e062f0dffcb62b825f7452ea27bac2b4d1 (patch)
treee072a97ef37bb9c4e39d5b8339828b7f81b507ae /http.h
parent901c9ba27afd50d709a084f8c35cc208ac5b85be (diff)
downloadplop-048525e062f0dffcb62b825f7452ea27bac2b4d1.zip
plop-048525e062f0dffcb62b825f7452ea27bac2b4d1.tar.gz
plop-048525e062f0dffcb62b825f7452ea27bac2b4d1.tar.bz2
Reverted to echo and removed unused code
Diffstat (limited to 'http.h')
-rw-r--r--http.h21
1 files changed, 1 insertions, 20 deletions
diff --git a/http.h b/http.h
index 8134b1d..fd75db9 100644
--- a/http.h
+++ b/http.h
@@ -1,25 +1,6 @@
#ifndef HTTP_H
#define HTTP_H
-enum method
-{
- METHOD_GET,
- METHOD_HEAD,
- METHOD_POST,
- METHOD_PUT,
- METHOD_DELETE,
- METHOD_OPTIONS,
- METHOD_PATCH,
- NUMBER_OF_METHODS,
- METHOD_INVALID,
-};
-
-struct request
-{
- enum method method;
- char * body;
-};
-
enum status
{
STATUS_OK = 200,
@@ -36,6 +17,6 @@ extern const char * status_str[];
int respond_only_status(int, enum status);
int respond_with_body(int, enum status, const char *);
-int parse_request(int, struct request *);
+int collect_request(int, char **);
#endif // HTTP_H