cgi: A library for writing CGI programs

[ bsd3, library, network ] [ Propose Tags ] [ Report a vulnerability ]

This is a Haskell library for writing CGI programs.


[Skip to Readme]

Flags

Automatic Flags
NameDescriptionDefault
install-examples

compile (and install) the example programs

Disabled

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 3000.0.0, 3001.0.0, 3001.1.0, 3001.1.3, 3001.1.4, 3001.1.5, 3001.1.5.1, 3001.1.5.2, 3001.1.6.0, 3001.1.7.0, 3001.1.7.1, 3001.1.7.2, 3001.1.7.3, 3001.1.7.4, 3001.1.7.5, 3001.1.8, 3001.1.8.1, 3001.1.8.2, 3001.1.8.3, 3001.1.8.4, 3001.1.8.5, 3001.2.0.0, 3001.2.1.0, 3001.2.2.0, 3001.2.2.1, 3001.2.2.2, 3001.2.2.3, 3001.3.0.0, 3001.3.0.1, 3001.3.0.2, 3001.3.0.3, 3001.4.0.0, 3001.5.0.0, 3001.5.0.1 (info)
Change log CHANGELOG.md
Dependencies base (>=4.9 && <5), bytestring (<0.13), cgi, containers (<0.8), exceptions (>=0.10 && <0.11), mtl (>2.2.0.1 && <2.4), multipart (>=0.1.2 && <0.3), network-uri (>=2.6 && <2.7), parsec (>=2.0 && <3.2), time (>=1.5 && <1.13), xhtml (>=3000.0.0 && <3000.3) [details]
Tested with ghc ==8.0.2, ghc ==8.2.2, ghc ==8.4.4, ghc ==8.6.5, ghc ==8.8.4, ghc ==8.10.7, ghc ==9.0.2, ghc ==9.2.5, ghc ==9.4.4
License BSD-3-Clause
Copyright Bjorn Bringert, John Chee, Andy Gill, Anders Kaseorg, Ian Lynagh, Erik Meijer, Sven Panne, Jeremy Shaw, Peter Simons
Author Bjorn Bringert
Maintainer John Chee <cheecheeo@gmail.com>, Peter Simons <simons@cryp.to>
Revised Revision 3 made by PeterSimons at 2024-11-09T08:47:35Z
Category Network
Home page https://github.com/cheecheeo/haskell-cgi
Bug tracker https://github.com/cheecheeo/haskell-cgi/issues
Source repo head: git clone https://github.com/cheecheeo/haskell-cgi.git
Uploaded by PeterSimons at 2023-01-16T11:12:32Z
Distributions Debian:3001.5.0.0, FreeBSD:3001.2.2.2, LTSHaskell:3001.5.0.1, NixOS:3001.5.0.1, Stackage:3001.5.0.1
Reverse Dependencies 41 direct, 35 indirect [details]
Executables upload.cgi, showAllInputs.cgi, redirect.cgi, printinput.cgi, hello.cgi, error.cgi, cookie.cgi
Downloads 44249 total (153 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2023-01-16 [all 1 reports]

Readme for cgi-3001.5.0.1

[back to package description]

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