]> gitweb @ CieloNegro.org - Lucu.git/blob - Network/HTTP/Lucu.hs
Yet Another Huge Changes
[Lucu.git] / Network / HTTP / Lucu.hs
1 -- | Lucu is an embedded HTTP server library.
2 --
3 -- Features:
4 --
5 --   [/Affinity for RESTafarians/] Lucu is specifically designed to be
6 --   suitable for RESTful applications.
7 --
8 --   [/Full support of HTTP\/1.1/] Lucu supports request pipelining,
9 --   chunked I\/O, ETag comparison and \"100 Continue\".
10 --
11 --   [/SSL connections/] Lucu can handle HTTP connections over Secure
12 --   Socket Layer.
13 --
14 -- Lucu is not a replacement for Apache or lighttpd. It is intended to
15 -- be used to build an efficient web-based RESTful application. It is
16 -- also intended to be run behind a reverse-proxy so it doesn't have
17 -- the following (otherwise essential) functionalities:
18 --
19 --   [/Logging/] Lucu doesn't write logs of any requests from any
20 --   clients.
21 --
22 --   [/Client Filtering/] Lucu always accepts any clients. No IP
23 --   filter is implemented.
24 --
25 --   [/Bandwidth Limitting/] Lucu doesn't limit bandwidth it consumes.
26 --
27 --   [/Protection Against Wicked Clients/] Lucu is somewhat fragile
28 --   against wicked clients. No attacker should be able to cause a
29 --   buffer-overflow but can possibly DoS it.
30 --
31 module Network.HTTP.Lucu
32     ( -- * Entry Point
33       runHttpd
34
35       -- * 'Config'uration
36     , module Network.HTTP.Lucu.Config
37
38       -- * Resource Tree
39     , ResTree
40     , mkResTree
41
42       -- * 'Resource' Monad
43     , module Network.HTTP.Lucu.Resource
44
45       -- ** Things to be used in the Resource monad
46       -- *** Status Code
47     , StatusCode(..)
48
49       -- *** Abortion
50     , Abortion
51     , mkAbortion
52     , mkAbortion'
53     , abort
54
55       -- *** ETag
56     , ETag(..)
57     , strongETag
58     , weakETag
59     , parseETag
60
61       -- *** MIME Type
62     , MIMEType(..)
63     , mkMIMEType
64     , parseMIMEType
65
66       -- *** Authentication
67     , AuthChallenge(..)
68     , AuthCredential(..)
69     
70       -- * Utilities
71       -- ** Static file handling
72     , module Network.HTTP.Lucu.StaticFile
73     )
74     where
75 import Network.HTTP.Lucu.Abortion
76 import Network.HTTP.Lucu.Authentication
77 import Network.HTTP.Lucu.Config
78 import Network.HTTP.Lucu.ETag
79 import Network.HTTP.Lucu.Httpd
80 import Network.HTTP.Lucu.MIMEType
81 import Network.HTTP.Lucu.Resource
82 import Network.HTTP.Lucu.Resource.Tree
83 import Network.HTTP.Lucu.Response
84 import Network.HTTP.Lucu.StaticFile