Re: [quicwg/base-drafts] ALPN Tokens and Alt-Svc (#90)

Martin Thomson <notifications@github.com> Fri, 06 January 2017 00:58 UTC

Return-Path: <noreply@github.com>
X-Original-To: quic-issues@ietfa.amsl.com
Delivered-To: quic-issues@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 323911297CD for <quic-issues@ietfa.amsl.com>; Thu, 5 Jan 2017 16:58:50 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.52
X-Spam-Level:
X-Spam-Status: No, score=-6.52 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=github.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ocKb0tV0vmot for <quic-issues@ietfa.amsl.com>; Thu, 5 Jan 2017 16:58:49 -0800 (PST)
Received: from github-smtp2a-ext-cp1-prd.iad.github.net (github-smtp2-ext5.iad.github.net [192.30.252.196]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D67741297CA for <quic-issues@ietf.org>; Thu, 5 Jan 2017 16:58:48 -0800 (PST)
Date: Thu, 05 Jan 2017 16:58:48 -0800
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com; s=pf2014; t=1483664328; bh=n0qblRdhV4DTHrsoXepUpOxEx/eQClkNHtqt8ouuuIk=; h=From:Reply-To:To:Cc:In-Reply-To:References:Subject:List-ID: List-Archive:List-Post:List-Unsubscribe:From; b=c9gOdwqbf/EUz/sAyWV+rH1w5H2pBmWKAPjTRx0BZDG/B8iMkBtssC4MWE3xtZJ8F sep48/JAot8p/7u37GesCnOe0n5p1k2btlHosNo8kw9NUSfpf0NeIcI/v+1tUqOslg N5Pvs44yFWMD/XQpzZB4DadC6PqAezI66kU7hlhI=
From: Martin Thomson <notifications@github.com>
To: quicwg/base-drafts <base-drafts@noreply.github.com>
Message-ID: <quicwg/base-drafts/pull/90/review/15426058@github.com>
In-Reply-To: <quicwg/base-drafts/pull/90@github.com>
References: <quicwg/base-drafts/pull/90@github.com>
Subject: Re: [quicwg/base-drafts] ALPN Tokens and Alt-Svc (#90)
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="--==_mimepart_586eebc82a38c_7a493fc85f6cf13036945d"; charset="UTF-8"
Content-Transfer-Encoding: 7bit
Precedence: list
X-GitHub-Sender: martinthomson
X-GitHub-Recipient: quic-issues
X-GitHub-Reason: subscribed
X-Auto-Response-Suppress: All
X-GitHub-Recipient-Address: quic-issues@ietf.org
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic-issues/nFvHlSS_zRWg0yzKzSjzvR4L0LI>
Cc: Subscribed <subscribed@noreply.github.com>
X-BeenThere: quic-issues@ietf.org
X-Mailman-Version: 2.1.17
Reply-To: quic@ietf.org
List-Id: Notification list for GitHub issues related to the QUIC WG <quic-issues.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/quic-issues>, <mailto:quic-issues-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/quic-issues/>
List-Post: <mailto:quic-issues@ietf.org>
List-Help: <mailto:quic-issues-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/quic-issues>, <mailto:quic-issues-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 06 Jan 2017 00:58:50 -0000

martinthomson commented on this pull request.



>  
-On receipt of this header, a client may attempt to establish a QUIC connection
-on port 443 and, if successful, send HTTP requests using the mapping described
-in this document.
+This document defines the "v" parameter for Alt-Svc, which is used to provide
+version-negotiation hints to HTTP/QUIC clients. Syntax:
+
+    v = quoted-versions
+    quoted-versions = DQUOTE *( version-string "," ) version-string DQUOTE
+    version-string = token; percent-encoded QUIC version
+
+For example, if a server supported both version Q033 and Q034 it would specify
+the following header:
+
+    Alt-Svc: hq=":443"; v="Q034,Q033"

A note to discuss version representation:

You have a character string, I chose to go with just numbers.  Both have merits.  Numbers are simpler, but potentially longer (hexadecimal saves a few octets for larger values if you want to go there), but a four character string can be quite friendly.  You have to pick the right values though or you get a mash of %xx strings.

`Alt-Svc: hq=":443;v=<version>;v=<version>` might be better than creating a micro-syntax for the list.  See also httpwg/http-extensions#281

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/quicwg/base-drafts/pull/90#pullrequestreview-15426058