git.iko.soy/typeable/servant
on 0.2.1 help sign in
52 lines 1.5 kB history raw
1module Servant.API (
3 -- * Combinators
4 -- | Type-level combinator for expressing subrouting: @':>'@
5 module Servant.API.Sub,
6 -- | Type-level combinator for alternative endpoints: @':<|>'@
7 module Servant.API.Alternative,
9 -- * Accessing information from the request
10 -- | Capturing parts of the url path as parsed values: @'Capture'@
11 module Servant.API.Capture,
12 -- | Retrieving specific headers from the request
13 module Servant.API.Header,
14 -- | Retrieving parameters from the query string of the 'URI': @'QueryParam'@
15 module Servant.API.QueryParam,
16 -- | Accessing the request body as a JSON-encoded type: @'ReqBody'@
17 module Servant.API.ReqBody,
19 -- * Actual endpoints, distinguished by HTTP method
20 -- | GET requests
21 module Servant.API.Get,
22 -- | POST requests
23 module Servant.API.Post,
24 -- | DELETE requests
25 module Servant.API.Delete,
26 -- | PUT requests
27 module Servant.API.Put,
29 -- * Untyped endpoints
30 -- | Plugging in a wai 'Network.Wai.Application', serving directories
31 module Servant.API.Raw,
33 -- * Utilities
34 -- | QuasiQuotes for endpoints
35 module Servant.QQ,
36 -- | Type-safe internal URLs
37 module Servant.Utils.Links,
38 ) where
40import Servant.API.Alternative
41import Servant.API.Capture
42import Servant.API.Delete
43import Servant.API.Get
44import Servant.API.Header
45import Servant.API.Post
46import Servant.API.Put
47import Servant.API.QueryParam
48import Servant.API.Raw
49import Servant.API.ReqBody
50import Servant.API.Sub
51import Servant.QQ (sitemap)
52import Servant.Utils.Links (mkLink)