]> gitweb @ CieloNegro.org - Lucu.git/blobdiff - Network/HTTP/Lucu/Config.hs
data/mime.types
[Lucu.git] / Network / HTTP / Lucu / Config.hs
index 919e1344a8950ad4f445a07cf3bc041f1d3c7fc6..999672f165c420a609b3e3c5e78146344e6cd6d1 100644 (file)
@@ -4,16 +4,31 @@ module Network.HTTP.Lucu.Config
     )
     where
 
-import Network
+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 {
-      cnfServerPort      :: PortID
-    , cnfMaxEntityLength :: Integer
-    , cnfMaxURILength    :: Int
+      cnfServerSoftware   :: String
+    , cnfServerHost       :: HostName
+    , cnfServerPort       :: PortID
+    , cnfMaxPipelineDepth :: Int
+    , cnfMaxEntityLength  :: Int
+    , cnfMaxURILength     :: Int
+    , cnfExtToMIMEType    :: Map String MIMEType
     }
 
+
 defaultConfig = Config {
-                  cnfServerPort      = Service "http"
-                , cnfMaxEntityLength = 16 * 1024 * 1024 -- 16 MiB
-                , cnfMaxURILength    = 4 * 1024         -- 4 KiB
-                }
\ No newline at end of file
+                  cnfServerSoftware   = "Lucu/1.0"
+                , cnfServerHost       = unsafePerformIO getHostName
+                , cnfServerPort       = Service "http"
+                , cnfMaxPipelineDepth = 100
+                , cnfMaxEntityLength  = 16 * 1024 * 1024 -- 16 MiB
+                , cnfMaxURILength     = 4 * 1024         -- 4 KiB
+                , cnfExtToMIMEType    = undefined -- FIXME
+                }