aboutsummaryrefslogtreecommitdiff
path: root/src/zenhttp/servers/httpparser.h
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2026-04-23 18:16:57 +0200
committerStefan Boberg <[email protected]>2026-04-23 18:16:57 +0200
commit0232b991cd7d8e3a2114ea30e4591dd3e7b65c36 (patch)
tree94730e7594fd09ae1fa820391ce311f6daf13905 /src/zenhttp/servers/httpparser.h
parentFix forward declaration order for s_GotSigWinch and SigWinchHandler (diff)
parenttrace: declare Region event name fields as AnsiString (#1012) (diff)
downloadarchived-zen-sb/zen-help.tar.xz
archived-zen-sb/zen-help.zip
Merge branch 'main' into sb/zen-helpsb/zen-help
- Combine HelpCommand (this branch) with HistoryCommand (main) in zen CLI dispatcher - Keep filter-aware TuiPickOne rewrite; adopt main's ASCII arrow glyphs in doc comment
Diffstat (limited to 'src/zenhttp/servers/httpparser.h')
-rw-r--r--src/zenhttp/servers/httpparser.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/zenhttp/servers/httpparser.h b/src/zenhttp/servers/httpparser.h
index 23ad9d8fb..4ff216248 100644
--- a/src/zenhttp/servers/httpparser.h
+++ b/src/zenhttp/servers/httpparser.h
@@ -8,7 +8,7 @@
#include <EASTL/fixed_vector.h>
ZEN_THIRD_PARTY_INCLUDES_START
-#include <http_parser.h>
+#include <llhttp.h>
ZEN_THIRD_PARTY_INCLUDES_END
#include <atomic>
@@ -100,7 +100,7 @@ private:
Oid m_SessionId{};
IoBuffer m_BodyBuffer;
uint64_t m_BodyPosition = 0;
- http_parser m_Parser;
+ llhttp_t m_Parser;
eastl::fixed_vector<char, 512> m_HeaderData;
std::string m_NormalizedUrl;
@@ -114,8 +114,8 @@ private:
int OnBody(const char* Data, size_t Bytes);
int OnMessageComplete();
- static HttpRequestParser* GetThis(http_parser* Parser) { return reinterpret_cast<HttpRequestParser*>(Parser->data); }
- static http_parser_settings s_ParserSettings;
+ static HttpRequestParser* GetThis(llhttp_t* Parser) { return reinterpret_cast<HttpRequestParser*>(Parser->data); }
+ static llhttp_settings_t s_ParserSettings;
};
} // namespace zen