srs/trunk/src/protocol
Winlin 6720e96745
Upgrade HTTP parser from http-parser to llhttp. v7.0.77 (#4469)
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>
2025-09-03 20:12:59 -04:00
..
srs_protocol_amf0.cpp Use clang format. v7.0.52 (#4433) 2025-08-11 23:19:19 -04:00
srs_protocol_amf0.hpp Use clang format. v7.0.52 (#4433) 2025-08-11 23:19:19 -04:00
srs_protocol_conn.cpp Use clang format. v7.0.52 (#4433) 2025-08-11 23:19:19 -04:00
srs_protocol_conn.hpp Use clang format. v7.0.52 (#4433) 2025-08-11 23:19:19 -04:00
srs_protocol_format.cpp AI: Replace SrsSharedPtrMessage with SrsMediaPacket for unified media packet handling. v7.0.74 (#4465) 2025-09-01 18:06:24 -04:00
srs_protocol_format.hpp AI: Replace SrsSharedPtrMessage with SrsMediaPacket for unified media packet handling. v7.0.74 (#4465) 2025-09-01 18:06:24 -04:00
srs_protocol_http_client.cpp Organize utility functions to kernel. v7.0.65 (#4455) 2025-08-27 21:35:58 -04:00
srs_protocol_http_client.hpp Use clang format. v7.0.52 (#4433) 2025-08-11 23:19:19 -04:00
srs_protocol_http_conn.cpp Upgrade HTTP parser from http-parser to llhttp. v7.0.77 (#4469) 2025-09-03 20:12:59 -04:00
srs_protocol_http_conn.hpp Upgrade HTTP parser from http-parser to llhttp. v7.0.77 (#4469) 2025-09-03 20:12:59 -04:00
srs_protocol_http_stack_llhttp.cpp Upgrade HTTP parser from http-parser to llhttp. v7.0.77 (#4469) 2025-09-03 20:12:59 -04:00
srs_protocol_http_stack_llhttp.hpp Upgrade HTTP parser from http-parser to llhttp. v7.0.77 (#4469) 2025-09-03 20:12:59 -04:00
srs_protocol_http_stack_llhttpadapter.cpp Upgrade HTTP parser from http-parser to llhttp. v7.0.77 (#4469) 2025-09-03 20:12:59 -04:00
srs_protocol_http_stack_llhttpadapter.hpp Upgrade HTTP parser from http-parser to llhttp. v7.0.77 (#4469) 2025-09-03 20:12:59 -04:00
srs_protocol_http_stack_llhttpapi.cpp Upgrade HTTP parser from http-parser to llhttp. v7.0.77 (#4469) 2025-09-03 20:12:59 -04:00
srs_protocol_http_stack_llhttpapi.hpp Upgrade HTTP parser from http-parser to llhttp. v7.0.77 (#4469) 2025-09-03 20:12:59 -04:00
srs_protocol_http_stack_llhttphttp.cpp Upgrade HTTP parser from http-parser to llhttp. v7.0.77 (#4469) 2025-09-03 20:12:59 -04:00
srs_protocol_http_stack_llhttphttp.hpp Upgrade HTTP parser from http-parser to llhttp. v7.0.77 (#4469) 2025-09-03 20:12:59 -04:00
srs_protocol_http_stack.cpp Upgrade HTTP parser from http-parser to llhttp. v7.0.77 (#4469) 2025-09-03 20:12:59 -04:00
srs_protocol_http_stack.hpp Upgrade HTTP parser from http-parser to llhttp. v7.0.77 (#4469) 2025-09-03 20:12:59 -04:00
srs_protocol_io.cpp Use clang format. v7.0.52 (#4433) 2025-08-11 23:19:19 -04:00
srs_protocol_io.hpp Use clang format. v7.0.52 (#4433) 2025-08-11 23:19:19 -04:00
srs_protocol_json.cpp Organize utility functions to kernel. v7.0.65 (#4455) 2025-08-27 21:35:58 -04:00
srs_protocol_json.hpp Use clang format. v7.0.52 (#4433) 2025-08-11 23:19:19 -04:00
srs_protocol_kbps.cpp Use clang format. v7.0.52 (#4433) 2025-08-11 23:19:19 -04:00
srs_protocol_kbps.hpp Use clang format. v7.0.52 (#4433) 2025-08-11 23:19:19 -04:00
srs_protocol_log.cpp Organize utility functions to kernel. v7.0.65 (#4455) 2025-08-27 21:35:58 -04:00
srs_protocol_log.hpp Use clang format. v7.0.52 (#4433) 2025-08-11 23:19:19 -04:00
srs_protocol_protobuf.cpp Use clang format. v7.0.52 (#4433) 2025-08-11 23:19:19 -04:00
srs_protocol_protobuf.hpp Use clang format. v7.0.52 (#4433) 2025-08-11 23:19:19 -04:00
srs_protocol_raw_avc.cpp AI: Replace SrsSharedPtrMessage with SrsMediaPacket for unified media packet handling. v7.0.74 (#4465) 2025-09-01 18:06:24 -04:00
srs_protocol_raw_avc.hpp Organize utility functions to kernel. v7.0.65 (#4455) 2025-08-27 21:35:58 -04:00
srs_protocol_rtc_stun.cpp Organize utility functions to kernel. v7.0.65 (#4455) 2025-08-27 21:35:58 -04:00
srs_protocol_rtc_stun.hpp Organize utility functions to kernel. v7.0.65 (#4455) 2025-08-27 21:35:58 -04:00
srs_protocol_rtmp_conn.cpp Refine RTMP common message. 2025-09-01 18:51:20 -04:00
srs_protocol_rtmp_conn.hpp Refine RTMP common message. 2025-09-01 18:51:20 -04:00
srs_protocol_rtmp_handshake.cpp Organize utility functions to kernel. v7.0.65 (#4455) 2025-08-27 21:35:58 -04:00
srs_protocol_rtmp_handshake.hpp Use clang format. v7.0.52 (#4433) 2025-08-11 23:19:19 -04:00
srs_protocol_rtmp_msg_array.cpp AI: Replace SrsSharedPtrMessage with SrsMediaPacket for unified media packet handling. v7.0.74 (#4465) 2025-09-01 18:06:24 -04:00
srs_protocol_rtmp_msg_array.hpp AI: Replace SrsSharedPtrMessage with SrsMediaPacket for unified media packet handling. v7.0.74 (#4465) 2025-09-01 18:06:24 -04:00
srs_protocol_rtmp_stack.cpp Refine RTMP common message. 2025-09-01 18:51:20 -04:00
srs_protocol_rtmp_stack.hpp Refine RTMP common message. 2025-09-01 18:51:20 -04:00
srs_protocol_rtp.cpp AI: Replace SrsSharedPtrMessage with SrsMediaPacket for unified media packet handling. v7.0.74 (#4465) 2025-09-01 18:06:24 -04:00
srs_protocol_rtp.hpp AI: Replace SrsSharedPtrMessage with SrsMediaPacket for unified media packet handling. v7.0.74 (#4465) 2025-09-01 18:06:24 -04:00
srs_protocol_rtsp_stack.cpp Organize utility functions to kernel. v7.0.65 (#4455) 2025-08-27 21:35:58 -04:00
srs_protocol_rtsp_stack.hpp AI: Replace SrsSharedPtrMessage with SrsMediaPacket for unified media packet handling. v7.0.74 (#4465) 2025-09-01 18:06:24 -04:00
srs_protocol_srt.cpp Support IPv6 for all protocols: RTMP, HTTP/HTTPS, WebRTC, SRT, RTSP. v7.0.67 (#4457) 2025-08-30 08:52:21 -04:00
srs_protocol_srt.hpp AI: Merge SRT and RTC servers into unified SrsServer. v7.0.68 (#4459) 2025-08-31 08:58:37 -04:00
srs_protocol_st.cpp Support IPv6 for all protocols: RTMP, HTTP/HTTPS, WebRTC, SRT, RTSP. v7.0.67 (#4457) 2025-08-30 08:52:21 -04:00
srs_protocol_st.hpp AI: Merge SRT and RTC servers into unified SrsServer. v7.0.68 (#4459) 2025-08-31 08:58:37 -04:00
srs_protocol_stream.cpp Use clang format. v7.0.52 (#4433) 2025-08-11 23:19:19 -04:00
srs_protocol_stream.hpp Use clang format. v7.0.52 (#4433) 2025-08-11 23:19:19 -04:00
srs_protocol_utility.cpp Refine RTMP common message. 2025-09-01 18:51:20 -04:00
srs_protocol_utility.hpp Refine RTMP common message. 2025-09-01 18:51:20 -04:00