scotty-tls

TLS for Scotty https://github.com/dmjio/scotty-tls.git

Latest on Hackage:0.4.1

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.

BSD3 licensed by David Johnson
Maintained by djohnson.m@gmail.com

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

Changes

0.4.0

  • Remove unnecessary argument to scottyTTLS so that scotty-tls can build with scotty-0.10 and up
Used by 1 package:
comments powered byDisqus