react-php/react — pull request #71 by igorw (2012-10-02 23:45:56+00:00)
Title: [Http] Add support for HTTP/1.1 continue status codes

Some clients need this before they send their request body, in order to
avoid sending huge amounts of data needlessly.

Usage:

$http->on('request', function ($request, $response) {
if ($request->expectsContinue()) {
$response->writeContinue();
}

$request->on('data', function ($data) use ($response) {
if ($data) {
$response->writeHead(200, array('Content-Length' => 0));
$response->end();
}
});
});