PHPackages                             tourze/workerman-stream-http - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. tourze/workerman-stream-http

ActiveLibrary[HTTP &amp; Networking](/categories/http)

tourze/workerman-stream-http
============================

Workerman的另一个HTTP协议实现

0.0.1(6mo ago)00MITPHPCI passing

Since Nov 1Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/tourze/workerman-stream-http)[ Packagist](https://packagist.org/packages/tourze/workerman-stream-http)[ RSS](/packages/tourze-workerman-stream-http/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (9)Versions (2)Used By (0)

Workerman Stream HTTP
=====================

[](#workerman-stream-http)

[English](README.md) | [中文](README.zh-CN.md)

[![Latest Version](https://camo.githubusercontent.com/7450ac917f288266250adcb77cea863fc0c09715a3217cc558ac424f89c5d6c5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f746f75727a652f776f726b65726d616e2d73747265616d2d687474702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tourze/workerman-stream-http)[![Build Status](https://camo.githubusercontent.com/1cfa25daaee22ee8d87a64da5ba0129a17b18ff5c81cf1cb9eb51c4f808bf6d4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f746f75727a652f7068702d6d6f6e6f7265706f2f746573742e796d6c3f7374796c653d666c61742d737175617265)](https://github.com/tourze/php-monorepo/actions)[![Code Coverage](https://camo.githubusercontent.com/6ce0146325478eb7cebae4cc6139b2af2c161735dd0e3c6ff6802f2c5a708179/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f746f75727a652f7068702d6d6f6e6f7265706f3f7374796c653d666c61742d737175617265)](https://codecov.io/gh/tourze/php-monorepo)[![PHP Version](https://camo.githubusercontent.com/35a3bdb1bce06d7a3dbf9e85884c3825a7ae0a352825e3e64ecc741b9d690087/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344382e312d3838393242462e7376673f7374796c653d666c61742d737175617265)](https://php.net/)[![License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)

A streaming HTTP protocol implementation for Workerman that processes HTTP requests progressively as data arrives, providing better memory efficiency and performance for high-concurrency scenarios.

Features
--------

[](#features)

- 🚀 **Streaming HTTP processing** - Processes requests in stages (request line, headers, body)
- 📋 **PSR-7 compliant** - Full PSR-7 request and response handling
- 📦 **Chunked transfer encoding** - Support for HTTP chunked transfer encoding
- ⚡ **High performance** - Optimized for Workerman's event-driven architecture
- 🔄 **Keep-alive support** - HTTP/1.1 persistent connections
- 🔧 **Extensible** - Support for custom HTTP methods
- 🛡️ **Security features** - Built-in request size limits and error handling
- 🧪 **Well-tested** - Comprehensive test coverage

Dependencies
------------

[](#dependencies)

This package requires:

- PHP 8.1 or higher
- [Workerman](https://github.com/walkor/Workerman) 5.1 or higher
- [nyholm/psr7](https://github.com/Nyholm/psr7) for PSR-7 implementation
- [tourze/enum-extra](https://github.com/tourze/enum-extra) for enhanced enum support

Installation
------------

[](#installation)

```
composer require tourze/workerman-stream-http
```

Quick Start
-----------

[](#quick-start)

```
