http-kit/http-kit — pull request #130 by valentini (2014-03-07 20:49:51+00:00)
Title: Server can now respond to HTTP_1.1/Expect : 100-continue header 

Whenever cURL sends a POST request (on Mac and Linux), it sends the expect header, and then waits 1 second before sending the actual body. This fix allows the server to respond with the correct temporary status code (100) and accelerate the transfer of the body.

> POST / HTTP/1.1
> User-Agent: curl/7.21.4 (universal-apple-darwin11.0) libcurl/7.21.4 OpenSSL/0.9.8y zlib/1.2.5
> Host: localhost:8080
> Accept: */*
> Content-Length: 4778
> Content-Type: application/x-www-form-urlencoded
> Expect: 100-continue
>
< HTTP/1.1 100 Continue
< Content-Length: 0
< Server: http-kit
< Date: Fri, 07 Mar 2014 20:06:53 GMT
} [data not shown]
< HTTP/1.1 202 Accepted
< Content-Type: text/plain
< Content-Length: 4778
< Server: http-kit
< Date: Fri, 07 Mar 2014 20:06:53 GMT