http-listen: Listen to HTTP requests and handle them in arbitrary ways.

[ deprecated, library, network, public-domain, web ] [ Propose Tags ] [ Report a vulnerability ]
Deprecated in favor of warp

In HTTP connections, there is a client side which sends requests (such as GET and POST), and a server side which receives and parses them. Often, the server side is a web server which responds to requests by sending some HTML pages back. But sometimes it's just a listener.

For example, a Git server may offer web hooks. It could send a POST request whenever a commit is made, or a new repository is created. You then set up a program that listens to these POSTs and reacts by reporting them to the project's IRC channel or a mailing list.

Most HTTP packages assume a typical web server which handles requests by returning HTTP responses. This package tries to fill a gap by providing an API for simple listeners which don't necessarily serve web pages, and can do things like reporting to IRC.

Some features are missing and will be added soon:

  • Connection timeouts

  • Logging (currently errors are written to stdout, no other logging done)


[Skip to Readme]

Modules

[Index]

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] 0.1.0.0
Change log ChangeLog
Dependencies base (>=4.7 && <5), bytestring, exceptions (>=0.8), HTTP (>=4000.2), network, transformers (>=0.4.1) [details]
License LicenseRef-PublicDomain
Copyright ♡ Copying is an act of love. Please copy, reuse and share.
Author fr33domlover
Maintainer fr33domlover@riseup.net
Revised Revision 2 made by akrasner at 2015-10-05T13:55:40Z
Category Network, Web
Home page http://rel4tion.org/projects/http-listen/
Bug tracker http://rel4tion.org/projects/http-listen/tickets/
Source repo head: darcs get http://hub.darcs.net/fr33domlover/http-listen
Uploaded by akrasner at 2015-08-05T23:32:29Z
Distributions
Downloads 1317 total (4 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2015-08-06 [all 1 reports]

Readme for http-listen-0.1.0.0

[back to package description]

See the .cabal file for more info and link to project website the version control.

The official download location is Hackage:

http://hackage.haskell.org/package/http-listen

This library is free software, and is committed to software freedom. It is released to the public domain using the CC0 Public Domain Dedication. For the boring "legal" details see the file 'COPYING'.

See the file 'INSTALL' for hints on installation. The file 'ChangeLog' explains how to see the history log of the changes done in the code. 'NEWS' provides a friendly overview of the changes for each release.