The http-listen package
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:
Logging (currently errors are written to stdout, no other logging done)
[Skip to Readme]
|Dependencies||base (>=4.7 && <5), bytestring, exceptions (>=0.8), HTTP (>=4000.2), network, transformers (>=0.4.1) [details]|
|Copyright||♡ Copying is an act of love. Please copy, reuse and share.|
|Source repository||head: darcs get http://hub.darcs.net/fr33domlover/http-listen|
|Uploaded||Wed Aug 5 23:32:29 UTC 2015 by akrasner|
|Updated||Mon Oct 5 13:55:40 UTC 2015 by akrasner to revision 2|
|Downloads||145 total (3 in the last 30 days)|
|Status||Docs available [build log]
Last success reported on 2015-08-06 [all 1 reports]
For package maintainers and hackage trustees