main = let config = defaultConfig { cnfServerPort = PortNumber 9999 }
resources = mkResTree [ ( []
, helloWorld )
- , ( ["compilers"]
- , staticFile "/etc/compilers" )
+
+ , ( ["index.html"]
+ , staticFile "/Users/admin/Sites/index.html" )
+
+ , ( ["urandom"]
+ , staticFile "/dev/urandom" )
+
+ , ( ["inc"]
+ , staticDir "/usr/include" )
]
in
do installHandler sigPIPE Ignore Nothing
resUsesNativeThread = False
, resIsGreedy = False
, resGet
- = Just $ do time <- liftIO $ getClockTime
- foundEntity (strongETag "abcde") time
+ = Just $ do --time <- liftIO $ getClockTime
+ --foundEntity (strongETag "abcde") time
setContentType $ "text" +/+ "hello"
outputChunk "Hello, "
outputChunk "World!\n"