Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Assorted examples demonstrating different policies.
Synopsis
- data Example = Example
- type Handler = HandlerFor Example
- type Widget = WidgetFor Example ()
- resourcesExample :: [ResourceTree String]
- getExample1R :: Handler Html
- getExample2R :: Handler Html
- getExample3R :: Handler Html
- getExample4R :: Handler Html
- getExample5R :: Handler Html
- getExample6R :: Handler Html
- getExample7R :: Handler Html
- postExample7R :: Handler Html
- cdn :: Source
- getExample8R :: Handler Html
- getExample9R :: Handler Html
- getExample10R :: Handler Html
- getExample11R :: Handler Html
- getExample12R :: Handler Html
- runExamples :: IO ()
Documentation
Instances
type Handler = HandlerFor Example Source #
getExample1R :: Handler Html Source #
Allows scripts from self.
getExample2R :: Handler Html Source #
Allows all styles over https.
getExample3R :: Handler Html Source #
Allows images from a certain uri.
getExample4R :: Handler Html Source #
Allows all images.
getExample5R :: Handler Html Source #
Disallows images entirely.
getExample6R :: Handler Html Source #
Blocks forms from being submitted
runExamples :: IO () Source #
Run a webserver to serve these examples at 1, 2, etc.