diff options
author | Aki <please@ignore.pl> | 2020-05-05 23:56:29 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2020-05-05 23:56:29 +0200 |
commit | 048525e062f0dffcb62b825f7452ea27bac2b4d1 (patch) | |
tree | e072a97ef37bb9c4e39d5b8339828b7f81b507ae /http.h | |
parent | 901c9ba27afd50d709a084f8c35cc208ac5b85be (diff) | |
download | plop-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.h | 21 |
1 files changed, 1 insertions, 20 deletions
@@ -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 |