W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2006

[whatwg] Some comments on server-sent events

From: Sverre Johansen <sverre.johansen@gmail.com>
Date: Fri, 25 Aug 2006 10:06:56 +0200
Message-ID: <1156493216.5423.13.camel@localhost.localdomain>
On ons, 2006-08-23 at 18:58 +0200, Anne van Kesteren wrote:
> * What happens for other line feed characters? Are they treated as fields?
> Won't that give lots of problems for authors coding in non-Unix formats?
> HTTP for example allows both.

HTTP uses CRLF, but the specification recommends that UA should also
allow linefeeds for the headers. Other places, for example in the chunk
encoding, it requires CRLF.

   The line terminator for message-header fields is the sequence CRLF.
   However, we recommend that applications, when parsing such headers,
   recognize a single LF as a line terminator and ignore the leading CR.

> * "For each non-blank, non-comment line, the field name is first
> taken[...]" doesn't cover what happens to command lines.
> * "The ctrlKey field would be ignored[...]" should probably say
> "keyIdentifier" as that's what's used in the example.

        Sverre Johansen
Received on Friday, 25 August 2006 01:06:56 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:48 UTC