2017 © Pedro Peláez
 

library reactphp-http

Library for building an evented http server.

image

werkint/reactphp-http

Library for building an evented http server.

  • Tuesday, November 29, 2016
  • by nick4fake
  • Repository
  • 4 Watchers
  • 0 Stars
  • 1,417 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 73 Forks
  • 0 Open issues
  • 22 Versions
  • 0 % Grown

The README.md

Http Component

Build Status Code Climate, (*1)

Library for building an evented http server., (*2)

This component builds on top of the Socket component to implement HTTP. Here are the main concepts:, (*3)

  • Server: Attaches itself to an instance of React\Socket\ServerInterface, parses any incoming data as HTTP, emits a request event for each request.
  • Request: A ReadableStream which streams the request body and contains meta data which was parsed from the request header.
  • Response A WritableStream which streams the response body. You can set the status code and response headers via the writeHead() method.

Quickstart example

This is an HTTP server which responds with Hello World to every request., (*4)

$loop = React\EventLoop\Factory::create();
$socket = new React\Socket\Server($loop);

$http = new React\Http\Server($socket);
$http->on('request', function ($request, $response) {
    $response->writeHead(200, array('Content-Type' => 'text/plain'));
    $response->end("Hello World!\n");
});

$socket->listen(1337);
$loop->run();

See also the examples., (*5)

The Versions

29/11 2016

dev-master

9999999-dev

Library for building an evented http server.

  Sources   Download

MIT

The Requires

 

http

29/11 2016

dev-pauseresume-fix

dev-pauseresume-fix

Library for building an evented http server.

  Sources   Download

MIT

The Requires

 

http

16/11 2016

dev-server-fix

dev-server-fix

Library for building an evented http server.

  Sources   Download

MIT

The Requires

 

http

16/11 2016

dev-headers-fix

dev-headers-fix

Library for building an evented http server.

  Sources   Download

MIT

The Requires

 

http

09/11 2016

v0.4.2

0.4.2.0

Library for building an evented http server.

  Sources   Download

MIT

The Requires

 

http

23/10 2016

dev-fix-consistent-request-header-parser-error-events

dev-fix-consistent-request-header-parser-error-events

Library for building an evented http server.

  Sources   Download

MIT

The Requires

 

http

14/09 2016

dev-ci-travis-test-against-7.1-and-no-more-hhvm-nightly

dev-ci-travis-test-against-7.1-and-no-more-hhvm-nightly

Library for building an evented http server.

  Sources   Download

MIT

The Requires

 

http

14/09 2016

dev-feature-file-object

dev-feature-file-object

Library for building an evented http server.

  Sources   Download

MIT

The Requires

 

http

07/09 2016

dev-streaming-multipart

dev-streaming-multipart

Library for building an evented http server.

  Sources   Download

MIT

The Requires

 

The Development Requires

http

21/05 2015

v0.4.1

0.4.1.0

Library for building an evented http server.

  Sources   Download

MIT

The Requires

 

http

15/04 2015

dev-WyriHaximus-php7-hhvm-travis

dev-WyriHaximus-php7-hhvm-travis

Library for building an evented http server.

  Sources   Download

MIT

The Requires

 

http

08/06 2014

0.3.x-dev

0.3.9999999.9999999-dev

Library for building an evented http server.

  Sources   Download

MIT

The Requires

 

http

01/06 2014

dev-compat-guzzle-deps

dev-compat-guzzle-deps

Library for building an evented http server.

  Sources   Download

MIT

The Requires

 

http

02/02 2014

v0.4.0

0.4.0.0

Library for building an evented http server.

  Sources   Download

MIT

The Requires

 

http

24/02 2013

v0.3.0

0.3.0.0

Library for building an evented http server.

  Sources   Download

MIT

The Requires

 

http

26/12 2012

v0.2.6

0.2.6.0

Library for building an evented http server.

  Sources   Download

MIT

The Requires

 

http

10/11 2012

v0.2.3

0.2.3.0

Library for building an evented http server.

  Sources   Download

MIT

The Requires

 

http

28/10 2012

v0.2.2

0.2.2.0

Library for building an evented http server.

  Sources   Download

MIT

The Requires

 

http

03/10 2012

v0.2.1

0.2.1.0

Library for building an evented http server.

  Sources   Download

MIT

The Requires

 

http

10/09 2012

v0.2.0

0.2.0.0

Library for building an evented http server.

  Sources   Download

MIT

The Requires

 

http

12/07 2012

v0.1.1

0.1.1.0

Library for building an evented http server.

  Sources   Download

MIT

The Requires

 

http

11/07 2012

v0.1.0

0.1.0.0

Library for building an evented http server.

  Sources   Download

MIT

The Requires

 

http