@@ -18,13 +18,21 @@ import Servant.Server
1818--
1919-- The given 'Application' will get the request as received by the server, potentially with
2020-- a modified (stripped) 'pathInfo' if the 'Application' is being routed with 'Servant.API.Sub.:>'.
21+--
22+-- In addition to just letting you plug in your existing WAI 'Application's,
23+-- this can also be used with 'Servant.Utils.StaticFiles.serveDirectory' to serve
24+-- static files stored in a particular directory on your filesystem, or to serve
25+-- your API's documentation with 'Servant.Utils.StaticFiles.serveDocumentation'.
2126data Raw
2227
28+-- | Just pass the request to the underlying application and serve its response.
2329instance HasServer Raw where
2430 type Server Raw = Application
2531 route Proxy rawApplication request respond =
2632 rawApplication request (respond . succeedWith)
2733
34+-- | Pick a 'Method' and specify where the server you want to query is. You get
35+-- back the status code and the response body as a 'ByteString'.
2836instance HasClient Raw where
2937 type Client Raw = Method -> BaseUrl -> EitherT String IO (Int, ByteString)
3038