gunrein / scotty-tls

Run your Scotty apps over TLS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Run your Scotty apps over TLS

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Haskell 100.0%