Remove HttpConnectionState::body

This commit is contained in:
2025-08-21 11:56:00 -04:00
parent 0b9310d560
commit 78a7549ce5
2 changed files with 4 additions and 4 deletions

View File

@@ -391,9 +391,10 @@ int HttpHandler::onHeadersComplete(llhttp_t *parser) {
} }
int HttpHandler::onBody(llhttp_t *parser, const char *at, size_t length) { int HttpHandler::onBody(llhttp_t *parser, const char *at, size_t length) {
auto *state = static_cast<HttpConnectionState *>(parser->data); [[maybe_unused]] auto *state =
// Store body (simplified - would need to accumulate for streaming) static_cast<HttpConnectionState *>(parser->data);
state->body = std::string_view(at, length); (void)at;
(void)length;
return 0; return 0;
} }

View File

@@ -34,7 +34,6 @@ struct HttpConnectionState {
// Current request data (arena-allocated) // Current request data (arena-allocated)
std::string_view method; std::string_view method;
std::string_view url; std::string_view url;
std::string_view body;
// Parse state // Parse state
bool headers_complete = false; bool headers_complete = false;