LearnBoost/engine.io — pull request #62 by EugenDueck (2012-08-13 11:03:56+00:00)
Title: Reduce per-request overhead by not sending default values

'Keep-Alive' is the default connection mode in HTTP 1.1. Quoting RFC 2616:

> 8.1.2 Overall Operation
>
> A significant difference between HTTP/1.1 and earlier versions of HTTP is that persistent connections are the default behavior of any HTTP connection. That is, unless otherwise indicated, the client SHOULD assume that the server will maintain a persistent connection, even after error responses from the server.

'UTF-8' is the default character set for JSON. Quoting RFC 4627:

> 3. Encoding
>
> JSON text SHALL be encoded in Unicode. The default encoding is UTF-8.

I propose this change for the polling transports, as they incur the HTTP header overhead on every request