diff --git a/docs/c-api/http.h/struct_http_message.md b/docs/c-api/http.h/struct_http_message.md index 60eae685..9380496d 100644 --- a/docs/c-api/http.h/struct_http_message.md +++ b/docs/c-api/http.h/struct_http_message.md @@ -5,6 +5,7 @@ symbol_kind: "struct" signature: | struct http_message { struct mg_str message; /* Whole message: request line + headers + body */ + struct mg_str body; /* Message body. 0-length for requests with no body */ /* HTTP Request line (or HTTP response line) */ struct mg_str method; /* "GET" */ @@ -28,9 +29,6 @@ signature: | /* Headers */ struct mg_str header_names[MG_MAX_HTTP_HEADERS]; struct mg_str header_values[MG_MAX_HTTP_HEADERS]; - - /* Message body */ - struct mg_str body; /* Zero-length for requests with no body */ }; --- diff --git a/mongoose.h b/mongoose.h index b9247747..a8e30c3f 100644 --- a/mongoose.h +++ b/mongoose.h @@ -4140,6 +4140,7 @@ extern "C" { /* HTTP message */ struct http_message { struct mg_str message; /* Whole message: request line + headers + body */ + struct mg_str body; /* Message body. 0-length for requests with no body */ /* HTTP Request line (or HTTP response line) */ struct mg_str method; /* "GET" */ @@ -4163,9 +4164,6 @@ struct http_message { /* Headers */ struct mg_str header_names[MG_MAX_HTTP_HEADERS]; struct mg_str header_values[MG_MAX_HTTP_HEADERS]; - - /* Message body */ - struct mg_str body; /* Zero-length for requests with no body */ }; #if MG_ENABLE_HTTP_WEBSOCKET