-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/
-- | Low-Fat static file packaging for Haskell projects
--
-- Low-Fat static file packaging for Haskell projects.
@package xstatic
@version 0.2.0
module XStatic
-- | A static file definition.
--
-- Use the xstatic-th or file-embed library to embed a
-- local file.
data XStaticFile
XStaticFile :: ByteString -> ByteString -> ByteString -> ByteString -> XStaticFile
-- | The expected request path.
[xfPath] :: XStaticFile -> ByteString
-- | The file content.
[xfContent] :: XStaticFile -> ByteString
-- | The etag header value.
[xfETag] :: XStaticFile -> ByteString
-- | The content type, e.g. "application/javascript" or "text/css".
[xfType] :: XStaticFile -> ByteString
-- | Create a wai application to serve XStaticFile.
--
-- The "/xstatic/" request path prefix is ignored.
xstaticApp :: [XStaticFile] -> Application
-- | Serve XStaticFile using xstaticApp when the provided
-- application returns a 404.
xstaticMiddleware :: [XStaticFile] -> Middleware
isGzip :: ByteString -> Bool