
24 Apr
2017
24 Apr
'17
6:23 p.m.
On 22.04.2017 16:19, Nickolay Kudasov wrote:
I should probably elaborate, that warp [1] serves all of HTTP/1, HTTP/1.1 and HTTP/2 requests. So if you're looking for a HTTP/2 server, you can just use warp.
Note that the docs say that
For HTTP/2, Warp supports direct and ALPN (in TLS) but not upgrade.
Indeed. I just replaced run with runTLS, using this example: https://chromabits.com/posts/2016/02/15/serving-hakyll-site-with-warp/ It worked, just like that. Thank you, localhost.daplie.me. Unfortunately, http/2 is three times slower for my use case (thin html wih 30 * 2MB jpegs). -- Wojtek