Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
data NotFoundException Source #
Instances
Eq NotFoundException Source # | |
Defined in Web.Sprinkles.Handlers.Common (==) :: NotFoundException -> NotFoundException -> Bool # (/=) :: NotFoundException -> NotFoundException -> Bool # | |
Show NotFoundException Source # | |
Defined in Web.Sprinkles.Handlers.Common showsPrec :: Int -> NotFoundException -> ShowS # show :: NotFoundException -> String # showList :: [NotFoundException] -> ShowS # | |
Generic NotFoundException Source # | |
Defined in Web.Sprinkles.Handlers.Common type Rep NotFoundException :: * -> * # from :: NotFoundException -> Rep NotFoundException x # to :: Rep NotFoundException x -> NotFoundException # | |
Exception NotFoundException Source # | |
Defined in Web.Sprinkles.Handlers.Common | |
type Rep NotFoundException Source # | |
data MethodNotAllowedException Source #
Instances
Eq MethodNotAllowedException Source # | |
Defined in Web.Sprinkles.Handlers.Common | |
Show MethodNotAllowedException Source # | |
Defined in Web.Sprinkles.Handlers.Common showsPrec :: Int -> MethodNotAllowedException -> ShowS # show :: MethodNotAllowedException -> String # showList :: [MethodNotAllowedException] -> ShowS # | |
Generic MethodNotAllowedException Source # | |
Defined in Web.Sprinkles.Handlers.Common type Rep MethodNotAllowedException :: * -> * # | |
Exception MethodNotAllowedException Source # | |
type Rep MethodNotAllowedException Source # | |
data NotAllowedException Source #
Instances
Eq NotAllowedException Source # | |
Defined in Web.Sprinkles.Handlers.Common (==) :: NotAllowedException -> NotAllowedException -> Bool # (/=) :: NotAllowedException -> NotAllowedException -> Bool # | |
Show NotAllowedException Source # | |
Defined in Web.Sprinkles.Handlers.Common showsPrec :: Int -> NotAllowedException -> ShowS # show :: NotAllowedException -> String # showList :: [NotAllowedException] -> ShowS # | |
Generic NotAllowedException Source # | |
Defined in Web.Sprinkles.Handlers.Common type Rep NotAllowedException :: * -> * # from :: NotAllowedException -> Rep NotAllowedException x # to :: Rep NotAllowedException x -> NotAllowedException # | |
Exception NotAllowedException Source # | |
type Rep NotAllowedException Source # | |
data RequestValidationException Source #
Instances
Eq RequestValidationException Source # | |
Defined in Web.Sprinkles.Handlers.Common | |
Show RequestValidationException Source # | |
Defined in Web.Sprinkles.Handlers.Common showsPrec :: Int -> RequestValidationException -> ShowS # show :: RequestValidationException -> String # showList :: [RequestValidationException] -> ShowS # | |
Generic RequestValidationException Source # | |
Defined in Web.Sprinkles.Handlers.Common type Rep RequestValidationException :: * -> * # | |
Exception RequestValidationException Source # | |
type Rep RequestValidationException Source # | |
type ContextualHandler = HashMap Text (Items (BackendData SourcePos IO Html)) -> Project -> Maybe SessionHandle -> Application Source #
handleNotFound :: Project -> Request -> (Response -> IO ResponseReceived) -> NotFoundException -> IO ResponseReceived Source #
handleMethodNotAllowed :: Project -> Request -> (Response -> IO ResponseReceived) -> MethodNotAllowedException -> IO ResponseReceived Source #
handleNotAllowed :: Project -> Request -> (Response -> IO ResponseReceived) -> NotAllowedException -> IO ResponseReceived Source #
handleRequestValidation :: Project -> Request -> (Response -> IO ResponseReceived) -> RequestValidationException -> IO ResponseReceived Source #
handleHttpError :: Status -> Text -> Text -> Project -> Application Source #
handle404 :: Project -> Application Source #
handle405 :: Project -> Application Source #
handle500 :: SomeException -> Project -> Application Source #
loadBackendDict :: (LogLevel -> Text -> IO ()) -> RequestContext -> RawBackendCache -> AList Text BackendSpec -> Set Text -> HashMap Text (GVal (Run SourcePos IO Text)) -> IO (HashMap Text (Items (BackendData SourcePos IO Html))) Source #