[Haskell-cafe] In search for an http/2 server

Wojtek NarczyƄski wojtek at power.com.pl
Mon Apr 24 22:23:09 UTC 2017



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


More information about the Haskell-Cafe mailing list