W3C home > Mailing lists > Public > public-web-perf@w3.org > December 2013

Proposal for protocol identification

From: Mark Nottingham <mnot@mnot.net>
Date: Thu, 12 Dec 2013 16:50:47 +1100
Message-Id: <9DD330A0-8180-4171-B7A5-191512DD255E@mnot.net>
To: public-web-perf <public-web-perf@w3.org>

Here's a proposal for identifying the protocol in use, both in NavigationTiming and ResourceTiming:


readonly attribute DOMString protocol;

This optional attribute reflects the protocol used to fetch the resource, as identified by the ALPN Protocol Identifier <http://tools.ietf.org/search/draft-ietf-tls-applayerprotoneg>. Its value is a DOMString representing the Protocol Identifier.

Because ALPN Protocol Identifiers are specified as arrays of bytes, this specification assumes that they will be encoded in UTF-8 or a compatible encoding; if the Protocol Identifier is not valid UTF-8, the attribute's value should be an empty string.

Note that this attribute is intended to identify the protocol in use for the fetch regardless of how it was actually negotiated; that is, even if ALPN is not used to negotiate the protocol, this attribute still uses the ALPN Protocol Identifier to indicate the protocol in use.


Mark Nottingham   http://www.mnot.net/
Received on Thursday, 12 December 2013 05:51:16 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:04:37 UTC