The scotty-tls package

[Tags:bsd3, library]

Run your Scotty apps over TLS


[Skip to Readme]

Properties

Versions 0.1.0.0, 0.3.0.0, 0.4.0, 0.4.1
Change log CHANGELOG.md
Dependencies base (>=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]
License BSD3
Author David Johnson
Maintainer djohnson.m@gmail.com
Stability Unknown
Category Web
Home page https://github.com/dmjio/scotty-tls.git
Source repository head: git clone git://github.com/dmjio/scotty-tls.git
Uploaded Wed Oct 28 17:28:50 UTC 2015 by DavidJohnson
Distributions NixOS:0.4.1
Downloads 1421 total (9 in the last 30 days)
Votes
0 []
Status Docs available [build log]
Last success reported on 2015-10-30 [all 1 reports]

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees

Readme for scotty-tls

Readme for scotty-tls-0.4.1

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>"]