Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- type HXRequest = Header "HX-Request" Text
- type HXTriggerId = Header "HX-Trigger" Text
- type HXTriggerName = Header "HX-Trigger-Name" Text
- type HXTarget = Header "HX-Target" Text
- type HXPrompt = Header "HX-Prompt" Text
- type HXPush = Header "HX-Push" Text
- type HXRedirect = Header "HX-Redirect" Text
- type HXRefresh = Header "HX-Refresh" Text
- type HXTrigger = Header "HX-Trigger" Text
- type HXTriggerAfterSwap = Header "HX-Trigger-After-Swap" Text
- type HXTriggerAfterSettle = Header "HX-Trigger-After-Settle" Text
- type ExampleAPI = (HXRequest :> Get '[JSON] Text) :<|> ((HXTriggerId :> Post '[JSON] Text) :<|> ("somePath" :> Get '[JSON] (Headers '[HXPush, HXRedirect] Text)))
- exampleServer :: Server ExampleAPI
- exampleApp :: Application
Documentation
type HXRequest = Header "HX-Request" Text Source #
Request headers (sent by the client to the server)
type HXTriggerId = Header "HX-Trigger" Text Source #
type HXTriggerName = Header "HX-Trigger-Name" Text Source #
type HXRedirect = Header "HX-Redirect" Text Source #
type HXTriggerAfterSwap = Header "HX-Trigger-After-Swap" Text Source #
type HXTriggerAfterSettle = Header "HX-Trigger-After-Settle" Text Source #