From e1fd82bc463721eb7ade7f10986154d4945aaaa3 Mon Sep 17 00:00:00 2001 From: cpq Date: Fri, 25 Dec 2020 15:04:43 +0000 Subject: [PATCH] Remove unused code --- mongoose.h | 7 +++---- src/http.h | 7 +++---- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/mongoose.h b/mongoose.h index 158222e0..ac184ad4 100644 --- a/mongoose.h +++ b/mongoose.h @@ -674,15 +674,14 @@ struct mg_http_message { // GET /foo/bar/baz?aa=b&cc=ddd HTTP/1.1 // method |-| |----uri---| |--query--| |proto-| - struct mg_str method, uri, query, proto; // Request/response line + struct mg_str method, uri, query, proto; // Request/response line struct mg_http_header headers[MG_MAX_HTTP_HEADERS]; // Headers - struct mg_str body; // Body - struct mg_str message; // Request line + headers + body + struct mg_str body; // Body + struct mg_str message; // Request line + headers + body }; int mg_http_parse(const char *s, size_t len, struct mg_http_message *); int mg_http_get_request_len(const unsigned char *buf, size_t buf_len); -void mg_http_write_head(struct mg_connection *, int code, const char *fmt, ...); void mg_http_printf_chunk(struct mg_connection *cnn, const char *fmt, ...); void mg_http_write_chunk(struct mg_connection *c, const char *buf, size_t len); struct mg_connection *mg_http_listen(struct mg_mgr *, const char *url, diff --git a/src/http.h b/src/http.h index 0496dc77..d43d6a49 100644 --- a/src/http.h +++ b/src/http.h @@ -13,15 +13,14 @@ struct mg_http_message { // GET /foo/bar/baz?aa=b&cc=ddd HTTP/1.1 // method |-| |----uri---| |--query--| |proto-| - struct mg_str method, uri, query, proto; // Request/response line + struct mg_str method, uri, query, proto; // Request/response line struct mg_http_header headers[MG_MAX_HTTP_HEADERS]; // Headers - struct mg_str body; // Body - struct mg_str message; // Request line + headers + body + struct mg_str body; // Body + struct mg_str message; // Request line + headers + body }; int mg_http_parse(const char *s, size_t len, struct mg_http_message *); int mg_http_get_request_len(const unsigned char *buf, size_t buf_len); -void mg_http_write_head(struct mg_connection *, int code, const char *fmt, ...); void mg_http_printf_chunk(struct mg_connection *cnn, const char *fmt, ...); void mg_http_write_chunk(struct mg_connection *c, const char *buf, size_t len); struct mg_connection *mg_http_listen(struct mg_mgr *, const char *url,