diff options
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 |