In search for an http/2 server

Honorable cafe, I'd like to experiment with http/2. The package wai used to contain Network.Wai.HTTP2, but the ChangeLog says it has been removed in 3.2.0, no further explanation given. Where should I look for an http/2 server these days? -- Kind regards, Wojtek Narczynski

Hi Wojtek,
I am not entirely sure that's what you want, but there's http2 package [1]
that is used by warp.
Kind regards,
Nick
[1] http://hackage.haskell.org/package/http2
On Fri, 21 Apr 2017 at 21:23 Wojtek Narczyński
Honorable cafe,
I'd like to experiment with http/2. The package wai used to contain Network.Wai.HTTP2, but the ChangeLog says it has been removed in 3.2.0, no further explanation given. Where should I look for an http/2 server these days?
-- Kind regards, Wojtek Narczynski
_______________________________________________ Haskell-Cafe mailing list To (un)subscribe, modify options or view archives go to: http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe Only members subscribed via the mailman list are allowed to post.

Hi Wojtek, 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.
Kind regards,
Nick
[1] https://hackage.haskell.org/package/warp
On Sat, 22 Apr 2017 at 10:56 Nickolay Kudasov
Hi Wojtek,
I am not entirely sure that's what you want, but there's http2 package [1] that is used by warp.
Kind regards, Nick
[1] http://hackage.haskell.org/package/http2
On Fri, 21 Apr 2017 at 21:23 Wojtek Narczyński
wrote: Honorable cafe,
I'd like to experiment with http/2. The package wai used to contain Network.Wai.HTTP2, but the ChangeLog says it has been removed in 3.2.0, no further explanation given. Where should I look for an http/2 server these days?
-- Kind regards, Wojtek Narczynski
_______________________________________________ Haskell-Cafe mailing list To (un)subscribe, modify options or view archives go to: http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe Only members subscribed via the mailman list are allowed to post.

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
participants (2)
-
Nickolay Kudasov
-
Wojtek Narczyński