on 70ffe01 help sign in
55 lines 1.9 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,
18 -- | Retrieving matrix parameters from the 'URI' segment: @'MatrixParam'@
19 module Servant.API.MatrixParam,
21 -- * Actual endpoints, distinguished by HTTP method
22 -- | GET requests
23 module Servant.API.Get,
24 -- | POST requests
25 module Servant.API.Post,
26 -- | DELETE requests
27 module Servant.API.Delete,
28 -- | PUT requests
29 module Servant.API.Put,
31 -- * Untyped endpoints
32 -- | Plugging in a wai 'Network.Wai.Application', serving directories
33 module Servant.API.Raw,
35 -- * Utilities
36 -- | QuasiQuotes for endpoints
37 module Servant.QQ,
38 -- | Type-safe internal URIs
39 module Servant.Utils.Links,
40 ) where
42import Servant.API.Alternative ( (:<|>)(..) )
43import Servant.API.Capture ( Capture )
44import Servant.API.Delete ( Delete )
45import Servant.API.Get ( Get )
46import Servant.API.Header ( Header )
47import Servant.API.Post ( Post )
48import Servant.API.Put ( Put )
49import Servant.API.QueryParam ( QueryFlag, QueryParams, QueryParam )
50import Servant.API.MatrixParam ( MatrixFlag, MatrixParams, MatrixParam )
51import Servant.API.Raw ( Raw )
52import Servant.API.ReqBody ( ReqBody )
53import Servant.API.Sub ( (:>)(..) )
54import Servant.QQ ( sitemap )
55import Servant.Utils.Links ( safeLink, URI(..) )