diff options
| author | Dan Engelbrecht <[email protected]> | 2026-04-09 10:34:30 +0200 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2026-04-09 10:34:30 +0200 |
| commit | 4598f710da2d0e387c53eb97d983ff520c211a8f (patch) | |
| tree | b731277ec552a5ad978e1caa104a082ce25ecf2b /src/zenhttp/servers/httpparser.h | |
| parent | 5.8.3 (diff) | |
| download | zen-4598f710da2d0e387c53eb97d983ff520c211a8f.tar.xz zen-4598f710da2d0e387c53eb97d983ff520c211a8f.zip | |
migrate from http_parser to llhttp (#929)
Diffstat (limited to 'src/zenhttp/servers/httpparser.h')
| -rw-r--r-- | src/zenhttp/servers/httpparser.h | 8 |
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 |