2015-01-13 20:38:34 +01:00
|
|
|
{-# LANGUAGE DeriveDataTypeable #-}
|
2015-05-02 03:21:03 +02:00
|
|
|
{-# OPTIONS_HADDOCK not-home #-}
|
2014-10-27 11:24:20 +01:00
|
|
|
module Servant.API.Raw where
|
|
|
|
|
2018-03-11 16:58:31 +01:00
|
|
|
import Data.Typeable
|
|
|
|
(Typeable)
|
|
|
|
|
2014-10-27 11:24:20 +01:00
|
|
|
-- | Endpoint for plugging in your own Wai 'Application's.
|
2014-10-28 10:42:49 +01:00
|
|
|
--
|
|
|
|
-- The given 'Application' will get the request as received by the server, potentially with
|
|
|
|
-- a modified (stripped) 'pathInfo' if the 'Application' is being routed with 'Servant.API.Sub.:>'.
|
2014-11-22 18:04:19 +01:00
|
|
|
--
|
|
|
|
-- In addition to just letting you plug in your existing WAI 'Application's,
|
2019-11-12 08:57:14 +01:00
|
|
|
-- this can also be used with functions from
|
|
|
|
-- <https://hackage.haskell.org/package/servant-server/docs/Servant-Server-StaticFiles.html Servant.Server.StaticFiles>
|
|
|
|
-- to serve static files stored in a particular directory on your filesystem
|
2015-01-13 20:38:34 +01:00
|
|
|
data Raw deriving Typeable
|
2022-03-04 10:23:41 +01:00
|
|
|
|
|
|
|
-- | Variant of 'Raw' that lets you access the underlying monadic context to process the request.
|
|
|
|
data RawM deriving Typeable
|