2017 © Pedro Peláez
 

library http

Library for building an evented http server.

image

bileto/http

Library for building an evented http server.

  • Thursday, December 17, 2015
  • by bileto
  • Repository
  • 21 Watchers
  • 0 Stars
  • 9,362 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 75 Forks
  • 0 Open issues
  • 15 Versions
  • 6 % 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.

Usage

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();

The Versions

17/12 2015

dev-master

9999999-dev

Library for building an evented http server.

  Sources   Download

MIT

The Requires

 

The Development Requires

http

04/08 2015

dev-post-fix

dev-post-fix

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