About

Metadata

  • Last updated , by PeterSimons
  • License BSD-3-Clause
  • Categories Network Development
  • Maintained by: John Chee <cheecheeo@gmail.com>, Peter Simons <simons@cryp.to>

  • Lottery factor: 1

Links

Installation

Tested Compilers

  1. 9.12.1
  2. 9.10.1
  3. 9.8.4
  4. 9.6.6
  5. 9.4.8
  6. 9.2.8
  7. 9.0.2
  8. 8.10.7
  9. 8.8.4
  10. 8.6.5
  11. 8.4.4
  12. 8.2.2
  13. 8.0.2

Package Flags

Use the -f option with cabal commands to enable flags

    install-examples (off by default)

    compile (and install) the example programs

Readme

cgi

hackage release stackage LTS package stackage Nightly package CI Status

This is a Haskell library for writing CGI programs. Its features include:

  • Access to CGI parameters (e.g. form input) from both GET and POST requests.
  • Access to CGI environment variables.
  • Ability to set arbitrary response headers.
  • Support for HTTP cookies.
  • An efficient implementation of multipart/form-data using Data.ByteString. This allows for efficient handling of file uploads.
  • A CGI monad transformer.
  • Basic exception handling and logging (these should be improved)
  • Low-level run functions that allow using programs written with this package with protocols other than CGI, for example FastCGI.

On hackage: http://hackage.haskell.org/package/cgi Source: https://github.com/cheecheeo/haskell-cgi