shredded FastCGI and CGI support, as they are incompatible with WebSocket 😢

This commit is contained in:
Dennis Frieberg 2021-04-03 02:20:00 +02:00
parent 49f3b092be
commit cf946f960c
9 changed files with 20 additions and 113 deletions

View file

@ -1,3 +1,11 @@
{-# LANGUAGE CPP #-}
#ifndef HTTP_SUPPORT
module Backend.Http
where
#endif
#ifdef HTTP_SUPPORT
{-# LANGUAGE OverloadedStrings #-}
-- we export a bit more than we have to, because the https module can reuse these things.
@ -78,3 +86,4 @@ httpToWarpConfig config' = HTTP.setPort confPort $ HTTP.setHost (fromString conf
backend :: Wai.Application -> HttpConfiguration -> IO ()
backend app config = HTTP.runSettings (httpToWarpConfig config) app
#endif