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

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

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

joyent/http-parserArchived

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

Http Parser

http-parser 是一个 C 语言库,专为零拷贝 HTTP 消息解析、URL 解构以及协议升级和分块编码管理而设计。它提供了从 HTTP 请求和响应中提取头部、方法和状态码的实用程序。

该项目包含一个零拷贝 URL 解析器,用于将字符串解构为各个组件,以及一种用于检测协议切换请求的机制,以识别非 HTTP 数据开始的确切字节偏移量。它还具有用于处理分块传输编码数据流的解码器。

Features

  • Message Parsing - Implements a zero-copy approach to extract header fields, status codes, and methods from HTTP requests and responses.
  • Zero-Copy Parsing - Extracts data from input buffers by referencing pointers to the original memory instead of allocating new tokens.
  • Chunked Transfer Encoding - Decodes data streams using chunked transfer encoding to retrieve the final response body.
  • HTTP Message Parsers - Provides a C library for extracting headers, methods, and status codes using a high-performance zero-copy approach.
  • URL Parsers - Offers a high-performance utility for deconstructing URL strings into individual components without memory allocation.
  • Incremental Stream Processing - Processes incoming HTTP data incrementally in small chunks to avoid loading entire requests into memory.
  • State-Based Parsing - Uses a state-machine based parsing technique to track context and handle byte streams incrementally.
  • URL Component Deconstructors - Splits complex URL strings into constituent parts such as host, path, and query parameters.
  • URL Data Parsing - Converts raw URL strings into structured components using a zero-copy utility.
  • HTTP Upgrade Handlers - Handles the conversion of inbound HTTP requests into persistent connections by detecting protocol upgrade requests.
  • Stream Offset Tracking - Tracks the exact byte position within the message stream to identify where protocol transitions occur.
  • C Memory Management - Implements low-level memory allocation and cleanup for buffers within a C-based library to minimize overhead.
  • Protocol Upgrades - Detects requests to switch protocols and identifies the byte offset where the new protocol stream begins.
  • Development Utilities - C-based HTTP request/response parser.

Star 历史

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

AI 搜索

探索更多 awesome 仓库

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

Start searching with AI

Http Parser 的开源替代方案

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

    nodejs/http-parser

    6,445在 GitHub 上查看↗

    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.

    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
  • vibora-io/viboravibora-io 的头像

    vibora-io/vibora

    5,592在 GitHub 上查看↗

    Vibora is an asynchronous Python web framework and built-in HTTP server designed for building high-performance web applications. It utilizes an asynchronous event loop and coroutines to process network requests and serve responses without requiring external server wrappers. The project features a high-performance asynchronous schema validator for request integrity, a non-blocking template engine with support for hot-reloading, and a WebSocket communication server for bidirectional real-time data exchange. The framework covers a broad range of capabilities, including modular route management

    Pythonasyncclientframework
    在 GitHub 上查看↗5,592
  • olahol/melodyolahol 的头像

    olahol/melody

    4,066在 GitHub 上查看↗

    Melody is a WebSocket server framework designed to upgrade HTTP connections into bidirectional streams. It functions as a session manager and binary streaming library that facilitates real-time data exchange between a server and multiple remote clients. The project features a broadcast engine that optimizes multi-client transmissions through wire-representation caching. It includes a dedicated session management system for attaching custom state to persistent network connections and an upgrade handler that validates handshake headers. The framework covers broad capability areas including eve

    Goexampleframeworkgo
    在 GitHub 上查看↗4,066
查看 Http Parser 的所有 30 个替代方案→

常见问题解答

joyent/http-parser 是做什么的?

http-parser 是一个 C 语言库,专为零拷贝 HTTP 消息解析、URL 解构以及协议升级和分块编码管理而设计。它提供了从 HTTP 请求和响应中提取头部、方法和状态码的实用程序。

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

joyent/http-parser 的主要功能包括:Message Parsing, Zero-Copy Parsing, Chunked Transfer Encoding, HTTP Message Parsers, URL Parsers, Incremental Stream Processing, State-Based Parsing, URL Component Deconstructors。

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

joyent/http-parser 的开源替代品包括: nodejs/http-parser — http-parser is a C-based library for extracting request and response metadata from raw HTTP data streams. It utilizes… boostorg/beast — Beast is a C++ library for implementing low-level HTTP and WebSocket clients and servers. It functions as an… vibora-io/vibora — Vibora is an asynchronous Python web framework and built-in HTTP server designed for building high-performance web… olahol/melody — Melody is a WebSocket server framework designed to upgrade HTTP connections into bidirectional streams. It functions… icsharpcode/sharpziplib — SharpZipLib is a .NET compression library and file archiver used to create, extract, and manage Zip, GZip, Tar, and… antirez/sds — sds is a C dynamic string library that provides a memory management wrapper for heap-allocated strings. It implements…