The webapp package

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.

[maintain]

Warnings:

See README.md


[Skip to ReadMe]

Properties

Versions0.0.1, 0.0.2, 0.1.0, 0.1.1, 0.1.2, 0.2.0, 0.3.0, 0.3.1, 0.3.2, 0.3.3, 0.3.4, 0.3.5, 0.3.6, 0.4.0, 0.4.1, 0.5.0, 0.6.0, 0.6.1, 0.6.1
Change logCHANGELOG.md
Dependenciesarray, base (<5.0), blaze-builder, bytestring, case-insensitive, http-types, network, optparse-applicative, regex-base, regex-pcre-builtin, stm, text, transformers, unix, vault, wai, warp, warp-tls [details]
LicenseMIT
Copyright(c) 2015 Nathaniel Symer
AuthorNathaniel Symer <nate@symer.io>
MaintainerNathaniel Symer <nate@symer.io>
CategoryWeb
Home pagehttps://github.com/natesymer/webapp
Bug trackerhttps://github.com/natesymer/webapp/issues
Source repositoryhead: git clone git://github.com/fhsjaagshs/webapp.git
UploadedFri Apr 14 13:00:03 UTC 2017 by natesymer

Modules

Downloads

Maintainers' corner

For package maintainers and hackage trustees

Readme for webapp-0.6.1

Web.App - WAI web framework

Build Status

Web.App is a general, minimalist Haskell web framework. See Haddock documentation and example.hs.

Usage notes

  1. Web.App can either be ran standalone (i.e. look ma, no nginx!) or behind other server programs.
    • To bind to privileged ports, your program must be executable as root. Privileges are resigned after the port is bound.
    • Web.App uses Warp under the hood to serve a WAI app based on provided routes.
    • SSL & HTTP2 are supported.
  2. Web.App provides a function called webappMain (as well as a series of other similarly named functions) that start your app.
    • Your program's main function should finish with a call to one of them.
  3. Web.App also provides command line options for controlling the HTTP server.
    • It also provides