From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Tristan Colgate Newsgroups: gmane.lisp.guile.devel Subject: Re: [Patch] Support HTTP/2 in HTTP client Date: Tue, 31 Mar 2020 16:00:54 +0100 Message-ID: References: <87v9mkoab3.fsf@priss.frightenedpiglet.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="53040"; mail-complaints-to="usenet@ciao.gmane.io" Cc: guile-devel To: Derek Upham Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Tue Mar 31 17:09:14 2020 Return-path: Envelope-to: guile-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jJIVr-000Dei-Pb for guile-devel@m.gmane-mx.org; Tue, 31 Mar 2020 17:09:11 +0200 Original-Received: from localhost ([::1]:39808 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jJIVq-00016Y-Ps for guile-devel@m.gmane-mx.org; Tue, 31 Mar 2020 11:09:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57166) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jJIO4-00069G-Rx for guile-devel@gnu.org; Tue, 31 Mar 2020 11:01:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jJIO3-0007zU-Mc for guile-devel@gnu.org; Tue, 31 Mar 2020 11:01:08 -0400 Original-Received: from mail-vk1-xa29.google.com ([2607:f8b0:4864:20::a29]:44530) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jJIO3-0007yw-Gq for guile-devel@gnu.org; Tue, 31 Mar 2020 11:01:07 -0400 Original-Received: by mail-vk1-xa29.google.com with SMTP id s194so5766753vkb.11 for ; Tue, 31 Mar 2020 08:01:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=fNPBNuMURLCmflW5Z8otz76h7onoMgfv3At3E+U9QBM=; b=oeI2A870qaICVvFlrgjSKHT/kSKl8Vzhx54/M1px8+TvxAXaWZwosHSQnmORHK6dJ6 48ts4oPvSMt9PyAPXFmNheatVT3haA1MK2U32oAxTPAUmRg+ymmfrr6/qTaAXhmqLhZs w1GBk2BolXAFBjPZgcSXjQTYx/7GaK2r0sU+fok/tx7lK/2R9ycyyMPBmuB8KXFNP1av U+l+JzBH99hCrC278KvPdj43+pLW3vEr039SC1MuT4aYvip/OuMqcEfsYkIyH63TdeDs XL43fQ/jvv1lVca/uUErJImm0Q6W/6TSO6Sl2r61Xpy99dgV75OjI/aygrgEAQMuevEp 6TsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=fNPBNuMURLCmflW5Z8otz76h7onoMgfv3At3E+U9QBM=; b=AjKBbHa6Q47DlBz1M3hPF4/lRfuzCOPN7lVf3xezwOaGCOC8ihyQhY7+BC0BZXEFVy G/rUv4khdl+A6FHDiNExi1Gi3eqPx1AZjq9PqDeypf2wCpLVTOEDc5bwfB4tiFS8TPb+ snUmY+2ROnVr0lrzL+5OPPXbihQTvaIUPJ/eluU+cqODsZ+5yDXknk9nNyfhoakSUyDF P92ztsXK5pGYvIctZSUYBNFVNcurY6CzjeBdj9jW0T0EPyMXAvDcOfKmb9c3EoHUuO26 qFwOo8Hu8Kd7Oj8UqLDRDp9ZoShMjXf8zKRA3Vf/zV67KXoQUZiRSeFvLIFrFRHN5CO9 UQnA== X-Gm-Message-State: AGi0PuZwWE5f9zJQn8SFPB5qmuofJzzysY8cOQjQJzTgAhyTghJKcy4K G4SBysOQnWmvPDD9NZLRwtqNE4LLXwgEKOypEUg= X-Google-Smtp-Source: APiQypKrrMJ4cOybvSINlTV6fJbG3k7V+N26QNjO1XMj52rVP21M0RHjufaCnTQA4wJiOSd4OV7fhOrzT9dwvNZpDLs= X-Received: by 2002:a1f:3649:: with SMTP id d70mr11537882vka.12.1585666866305; Tue, 31 Mar 2020 08:01:06 -0700 (PDT) In-Reply-To: <87v9mkoab3.fsf@priss.frightenedpiglet.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::a29 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Original-Sender: "guile-devel" Xref: news.gmane.io gmane.lisp.guile.devel:20478 Archived-At: http/2 is a substantially different protocol, it will take considerable effort to support it, guile's client should only be offering http/1.1 to the server. On Tue, 31 Mar 2020 at 15:49, Derek Upham wrote= : > > Companies like Google now respond to HTTP requests with HTTP 2. > For example: > > curl --silent --head https://www.google.com > > returns the first line > > HTTP/2 200 > > The Guile HTTP client code expects a =E2=80=9CHTTP/x.y=E2=80=9D structure= , and > treats this as an error. This patch recognizes and handles > =E2=80=9CHTTP/2=E2=80=9D on input and output. HTTP version numbers don= =E2=80=99t > proliferate quickly, so the code uses a brute force approach for > now. > > > Derek > > -- > Derek Upham > derek_upham@mailfence.com --=20 Tristan Colgate-McFarlane ---- "You can get all your daily vitamins from 52 pints of guiness, and a glass of milk"