awesome-repositories.com
博客
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
nodejs avatar

nodejs/http-parserArchived

0
View on GitHub↗
6,445 星标·1,522 分支·C·MIT·3 次浏览

Http Parser

http-parser is a C-based library for extracting request and response metadata from raw HTTP data streams. It utilizes a state-machine approach to identify message segments and boundaries.

The project implements zero-copy string parsing and pointer-based URL deconstruction to avoid memory allocations and data duplication. It supports incremental stream processing to handle fragmented data chunks and includes mechanisms for decoding chunked encoding and managing network protocol upgrades.

Features

  • State-Machine Parsers - Utilizes a state-machine parser to sequentially process byte streams and identify HTTP boundaries.
  • Zero-Copy Parsing - Extracts metadata by returning pointers to the original input buffer, avoiding new memory allocations.
  • Incremental Stream Processing - Processes fragmented data chunks sequentially to assemble payloads without loading everything into memory.
  • Request Parsing - Converts raw socket byte streams into structured HTTP request and response metadata.
  • Incremental Body Processing - Processes fragmented HTTP response bodies in chunks to minimize memory overhead.
  • URL Component Deconstructors - Splits URLs into constituent parts using pointer offsets to avoid memory duplication.
  • URL Data Parsing - Provides high-performance URL parsing that avoids memory copies to maintain low overhead.
  • Chunked Transfer Encoding - Decodes HTTP transfer-encoded data streams to deliver a fully assembled response body.
  • Event-Driven Callbacks - Implements an event-driven callback system to notify consumers as HTTP message segments are identified.
  • Response Body Decoders - Decodes chunked HTTP response payloads into a continuous data stream.
  • Protocol Upgrades - Provides mechanisms to track the exact byte offset for transitioning HTTP connections to new protocols.
  • Networking - HTTP request/response parser.
  • 构建系统 - A lightweight parser for HTTP request and response messages.
  • 网络库 - HTTP request and response parsing.

Star 历史

nodejs/http-parser 的 Star 历史图表nodejs/http-parser 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

用简单的语言描述您的需求 —— AI 将根据相关性为您从数千个精选开源项目中进行排序。

Start searching with AI

Http Parser 的开源替代方案

相似的开源项目,按与 Http Parser 的功能重合度排序。
  • joyent/http-parserjoyent 的头像

    joyent/http-parser

    6,445在 GitHub 上查看↗

    http-parser is a C library designed for zero-copy HTTP message parsing, URL deconstruction, and the management of protocol upgrades and chunked encoding. It provides utilities to extract headers, methods, and status codes from HTTP requests and responses. The project includes a zero-copy URL parser for deconstructing strings into individual components and a mechanism for detecting protocol switch requests to identify the exact byte offset where non-HTTP data begins. It also features a decoder for handling chunked transfer-encoded data streams.

    C
    在 GitHub 上查看↗6,445
  • boostorg/beastboostorg 的头像

    boostorg/beast

    4,801在 GitHub 上查看↗

    Beast is a C++ library for implementing low-level HTTP and WebSocket clients and servers. It functions as an asynchronous networking framework designed to compose non-blocking I/O operations and layered stream stacks for managing concurrent network traffic, specifically utilizing the Boost.Asio asynchronous model. The library provides a comprehensive implementation of the HTTP/1.1 and WebSocket protocols. For HTTP, it includes primitives for parsing and serializing messages with support for chunked transfer encoding, incremental body reading, and request pipelining. Its WebSocket implementati

    C++asioasync-programmingboost
    在 GitHub 上查看↗4,801
  • h2o/h2oh2o 的头像

    h2o/h2o

    11,493在 GitHub 上查看↗

    h2o is a high-performance content delivery server and HTTP/3 web server. It functions as a network gateway and reverse proxy that forwards client requests to upstream servers to manage traffic flow and load. The project distinguishes itself as a protocol fuzzing tool, utilizing a testing framework to execute automated stress tests against network protocols to identify memory leaks and crashes. The server provides capabilities for secure web traffic management through encrypted data transmission and high-performance web serving across HTTP/1, HTTP/2, and HTTP/3. It includes tools for server r

    C
    在 GitHub 上查看↗11,493
  • qinguoyi/tinywebserverqinguoyi 的头像

    qinguoyi/TinyWebServer

    19,582在 GitHub 上查看↗

    TinyWebServer is a lightweight HTTP web server written in C++ for Linux. It is designed to handle HTTP requests and serve static content using low-level Linux system calls for network connection management. The server utilizes a state machine to parse GET and POST data from network sockets. It incorporates a MySQL database connection pool to manage reusable links and reduce the overhead of opening and closing sessions. The project covers static media streaming for images and video files, user authentication workflows for registration and login, and system activity logging via both synchronou

    C++
    在 GitHub 上查看↗19,582
查看 Http Parser 的所有 30 个替代方案→

常见问题解答

nodejs/http-parser 是做什么的?

http-parser is a C-based library for extracting request and response metadata from raw HTTP data streams. It utilizes a state-machine approach to identify message segments and boundaries.

nodejs/http-parser 的主要功能有哪些?

nodejs/http-parser 的主要功能包括:State-Machine Parsers, Zero-Copy Parsing, Incremental Stream Processing, Request Parsing, Incremental Body Processing, URL Component Deconstructors, URL Data Parsing, Chunked Transfer Encoding。

nodejs/http-parser 有哪些开源替代品?

nodejs/http-parser 的开源替代品包括: joyent/http-parser — http-parser is a C library designed for zero-copy HTTP message parsing, URL deconstruction, and the management of… boostorg/beast — Beast is a C++ library for implementing low-level HTTP and WebSocket clients and servers. It functions as an… h2o/h2o — h2o is a high-performance content delivery server and HTTP/3 web server. It functions as a network gateway and reverse… qinguoyi/tinywebserver — TinyWebServer is a lightweight HTTP web server written in C++ for Linux. It is designed to handle HTTP requests and… fb55/htmlparser2 — htmlparser2 is a collection of tools for high-performance markup parsing, DOM manipulation, and incremental stream… node-fetch/node-fetch — node-fetch is a promise-based HTTP client library that provides a lightweight implementation of the Fetch API for the…