Popularity
7.9
Growing
Activity
2.6
-
25
8
7

Monthly Downloads: 9
Programming language: Haskell
License: BSD 3-clause "New" or "Revised" License
Tags: Web     Scotty    
Latest version: v0.4.0

scotty-tls alternatives and similar packages

Based on the "scotty" category.
Alternatively, view scotty-tls alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of scotty-tls or a related project?

Add another 'scotty' Package

README

Scotty-TLS

You can test by generating a self-signed certificate like this:

openssl req -nodes -newkey rsa:2048 -keyout example.key -out example.csr \
    -subj "/C=GB/ST=London/L=London/O=Acme Widgets/OU=IT Department/CN=example.com"
openssl x509 -req -days 365 -in example.csr -signkey example.key -out example.crt

For more details on making certificates, see this guide.

Install and run with:

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