Remove HttpConnectionState::body
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user