middlewares/emitter 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

middlewares/emitter

最新稳定版本:v1.1.0

Composer 安装命令:

composer require middlewares/emitter

包简介

Middleware to send a PSR-7 response using header() and echo

README 文档

README

Latest Version on Packagist Software License Testing Total Downloads

Middleware to send (or emit) a PSR-7 response object using header() and echo and return the sent response. This middleware is intended to go at the top of the middleware stack in order to get the response generated by the inner middlewares and send to the browser.

Requirements

Installation

This package is installable and autoloadable via Composer as middlewares/emitter.

composer require middlewares/emitter

Usage

Dispatcher::run([
    new Middlewares\Emitter(),
    // Here the rest of your middlewares
]);

maxBufferLength

Maximum output buffering size for each iteration. By default is 8192 bytes.

$emitter = (new Middlewares\Emitter())->maxBufferLength(512);

Please see CHANGELOG for more information about recent changes and CONTRIBUTING for contributing details.

The MIT License (MIT). Please see LICENSE for more information.

统计信息

  • 总下载量: 19.84k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 0
  • 依赖项目数: 4
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-08-15