mohws-0.2.1.6: Modular Haskell Web Server

Copyright2009 Henning Thielemann
Safe HaskellNone
LanguageHaskell98

Network.MoHWS.Part.AddSlash

Description

When we get a request for http://foo.com/bar, where bar is a directory and contains an index.html, we need to send back a redirect for http://foo.com/bar/ (i.e. add the final slash), otherwise relative links from index.html will be relative to http://foo.com/ instead of http://foo.com/bar/. E.g. look at http://www.haskell.org/happy/.

Documentation

desc :: C body => T body Configuration Source #