]> gitweb @ CieloNegro.org - Lucu.git/blobdiff - Network/HTTP/Lucu/Config.hs
data/mime.types
[Lucu.git] / Network / HTTP / Lucu / Config.hs
index 4932a142ca095a62df2a26fe83394f877aa1980c..999672f165c420a609b3e3c5e78146344e6cd6d1 100644 (file)
@@ -4,9 +4,13 @@ module Network.HTTP.Lucu.Config
     )
     where
 
-import Network
-import Network.BSD
-import System.IO.Unsafe
+import qualified Data.Map as M
+import           Data.Map (Map)
+import           Network
+import           Network.BSD
+import           Network.HTTP.Lucu.MIMEType
+import           System.IO.Unsafe
+
 
 data Config = Config {
       cnfServerSoftware   :: String
@@ -15,8 +19,10 @@ data Config = Config {
     , cnfMaxPipelineDepth :: Int
     , cnfMaxEntityLength  :: Int
     , cnfMaxURILength     :: Int
+    , cnfExtToMIMEType    :: Map String MIMEType
     }
 
+
 defaultConfig = Config {
                   cnfServerSoftware   = "Lucu/1.0"
                 , cnfServerHost       = unsafePerformIO getHostName
@@ -24,4 +30,5 @@ defaultConfig = Config {
                 , cnfMaxPipelineDepth = 100
                 , cnfMaxEntityLength  = 16 * 1024 * 1024 -- 16 MiB
                 , cnfMaxURILength     = 4 * 1024         -- 4 KiB
-                }
\ No newline at end of file
+                , cnfExtToMIMEType    = undefined -- FIXME
+                }