This PR modernizes SRS's HTTP handling by upgrading from the legacy http-parser library to the more performant and actively maintained llhttp library. * Replace http-parser with llhttp: Migrated from the deprecated http-parser to llhttp for better performance and maintenance * API compatibility: Updated all HTTP parsing logic to use llhttp APIs while maintaining backward compatibility * Simplified URL parsing: Replaced complex http-parser URL parsing with custom simple parser implementation Enhanced error handling: Improved error reporting with llhttp's better error context and positioning --------- Co-authored-by: OSSRS-AI <winlinam@gmail.com>
15 lines
247 B
C++
15 lines
247 B
C++
//
|
|
// Copyright (c) 2013-2025 The SRS Authors
|
|
//
|
|
// SPDX-License-Identifier: MIT
|
|
//
|
|
|
|
#ifndef SRS_PROTOCOL_HTTP_LLHTTPHTTP_HPP
|
|
#define SRS_PROTOCOL_HTTP_LLHTTPHTTP_HPP
|
|
|
|
#include <srs_core.hpp>
|
|
|
|
#include <srs_protocol_http_stack_llhttp.hpp>
|
|
|
|
#endif
|