[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Support HTTP/2 headers from web servers.

From: Derek Upham
Subject: [PATCH] Support HTTP/2 headers from web servers.
Date: Tue, 04 Jul 2017 09:15:02 -0700
User-agent: mu4e 0.9.17; emacs 25.1.1

The web client module doesn’t currently support HTTPS, so I have been calling 
out to curl and parsing the result with the web client code.  This is breaking 
for HTTP/2 servers, as the code expects a MAJOR.MINOR format, and the HTTP/2 
working group is explicitly not using a minor version in the HTTP/2 spec 
(  For example,

  curl --silent --head

returns the first line

  HTTP/2 200

This patch adds parsing and printing support that handles HTTP/2, representing 
it as a consistent ‘'(2 . 0)’ internally.

I’m tempted to drop the whole “find the dot index” approach for HTTP/1.x and 
just explicitly match on “HTTP/1.0” and “HTTP/1.1” as well.


Attachment: 0001-Support-HTTP-2-headers-from-web-servers.patch
Description: Git patch file

Derek Upham

reply via email to

[Prev in Thread] Current Thread [Next in Thread]