Yesod.Trans
Contents
module Yesod.Trans.Class
Methods
approot :: Approot (t site) #
errorHandler :: ErrorResponse -> HandlerFor (t site) TypedContent #
defaultLayout :: WidgetFor (t site) () -> HandlerFor (t site) Html #
urlParamRenderOverride :: t site -> Route (t site) -> [(Text, Text)] -> Maybe Builder #
isAuthorized :: Route (t site) -> Bool -> HandlerFor (t site) AuthResult #
isWriteRequest :: Route (t site) -> HandlerFor (t site) Bool #
authRoute :: t site -> Maybe (Route (t site)) #
cleanPath :: t site -> [Text] -> Either [Text] [Text] #
joinPath :: t site -> Text -> [Text] -> [(Text, Text)] -> Builder #
addStaticContent :: Text -> Text -> ByteString -> HandlerFor (t site) (Maybe (Either Text (Route (t site), [(Text, Text)]))) #
maximumContentLength :: t site -> Maybe (Route (t site)) -> Maybe Word64 #
maximumContentLengthIO :: t site -> Maybe (Route (t site)) -> IO (Maybe Word64) #
makeLogger :: t site -> IO Logger #
messageLoggerSource :: t site -> Logger -> Loc -> LogSource -> LogLevel -> LogStr -> IO () #
jsLoader :: t site -> ScriptLoadPosition (t site) #
jsAttributes :: t site -> [(Text, Text)] #
jsAttributesHandler :: HandlerFor (t site) [(Text, Text)] #
makeSessionBackend :: t site -> IO (Maybe SessionBackend) #
fileUpload :: t site -> RequestBodyLength -> FileUpload #
shouldLogIO :: t site -> LogSource -> LogLevel -> IO Bool #
yesodMiddleware :: ToTypedContent res => HandlerFor (t site) res -> HandlerFor (t site) res #
yesodWithInternalState :: t site -> Maybe (Route (t site)) -> (InternalState -> IO a) -> IO a #
defaultMessageWidget :: Html -> HtmlUrl (Route (t site)) -> WidgetFor (t site) () #