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,5 +1,6 @@
{-# LANGUAGE CPP #-}
module Backend.Backend where
import Control.Concurrent.MVar
import qualified Network.Wai as Wai
@ -9,12 +10,6 @@ import qualified Backend.Http as HTTP
#ifdef HTTPS_SUPPORT
import qualified Backend.Https as HTTPS
#endif
#ifdef FASTCGI_SUPPORT
import qualified Backend.FastCGI as FASTCGI
#endif
#ifdef CGI_SUPPORT
import qualified Backend.CGI as CGI
#endif
-- maybe we want a String instead of T.Text depends on
-- the argument parser
@ -40,11 +35,5 @@ backends =
#endif
#ifdef HTTPS_SUPPORT
BackendWithConfig HTTPS.forkHttpsBackend "https" "Host as as simple https server, using Warp" :
#endif
#ifdef FASTCGI_SUPPORT
BackendWithoutConfig FASTCGI.forkFastCGIBackend "fastcgi" "Deploy with fastcgi" :
#endif
#ifdef CGI_SUPPORT
BackendWithoutConfig CGI.forkCGIBackend "cgi" "Deploy with cgi" :
#endif
[]