The scotty-tls package

[Tags: bsd3, library]

Run your Scotty apps over TLS


[Skip to ReadMe]

Properties

Versions0.1.0.0, 0.3.0.0, 0.4.0
Change logCHANGELOG.md
Dependenciesbase (>=4.3.1 && <5), scotty (>=0.10.0), transformers (>=0.3.0.0), wai (>=1.3.0.1), warp (>=1.3.4.1), warp-tls (>=1.4.1.4) [details]
LicenseBSD3
AuthorDavid Johnson
Maintainerdjohnson.m@gmail.com
CategoryWeb
Home pagehttps://github.com/dmjio/scotty-tls.git
Source repositoryhead: git clone git://github.com/dmjio/scotty-tls.git
UploadedWed Jul 22 22:45:53 UTC 2015 by DavidJohnson
DistributionsNixOS:0.4.0
Downloads1012 total (144 in last 30 days)
Votes
0 []
StatusDocs pending
Build status unknown [no reports yet]

Modules

Downloads

Maintainers' corner

For package maintainers and hackage trustees

Readme for scotty-tls-0.4.0

Scotty-TLS

You can test by generating a self-signed certificate here.

cabal update && cabal install scotty-tls
{-# LANGUAGE OverloadedStrings #-}

import           Data.Monoid    (mconcat)
import           Web.Scotty
import           Web.Scotty.TLS

main :: IO ()
main = scottyTLS 3000 "server.key" "server.crt" $ do
         get "/:word" $ do
             beam <- param "word"
             html $ mconcat ["<h1>Scotty, ", beam, " me up!</h1>"]