The Ketchup package

[Tags:library, mit]

Ketchup is a very small HTTP server implementation, currently 300 LoC (for the whole thing)!

Ketchup is also made to be as modular and embeddable as possible, if you want a cabal-free Haskell app, just take those two/three files you need and put it in your project!

Currently Ketchup comes with:

Dependencies

The core parts of Ketchup are all depedency free, that includes Ketchup.Httpd and Ketchup.Utils (and to a certain extent, Ketchup.Chunked). The dependencies required are for the following modules:


[Skip to Readme]

Properties

Versions 0.1.0, 0.1.1, 0.1.2, 0.2.0, 0.2.1, 0.2.2, 0.2.3, 0.3, 0.3.1, 0.4.0, 0.4.1, 0.4.2, 0.4.3
Dependencies base (==4.*), base64-bytestring (<1.1.0.0), bytestring (>=0.9 && <0.11), directory (<1.3), mime-types (<0.2), network (<2.5), text (<2.0) [details]
License MIT
Author Alessandro Gatti
Maintainer zikyky@gmail.com
Stability Unknown
Category Web, Ketchup
Home page https://github.com/Hamcha/Ketchup
Source repository head: git clone git://github.com/Hamcha/Ketchup.git
Uploaded Tue Feb 24 09:33:08 UTC 2015 by Hamcha
Distributions NixOS:0.4.3
Downloads 2504 total (52 in the last 30 days)
Votes
0 []
Status Docs available [build log]
Last success reported on 2015-02-25 [all 1 reports]

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees

Readme for Ketchup

Readme for Ketchup-0.4.3

Howdy, this is Ketchup!

Ketchup is a very small HTTP server implementation, currently 300 LoC total! Ketchup is also made to be as modular and embeddable as possible, if you want a cabal-free Haskell app, just take those two/three files you need and put it in your project! Currently Ketchup comes with:

  • Basic httpd functionality (IPV4 only for now)
  • URL Routing with parameters (ie. /user/:name/)
  • Static file handler (ie. static "." as route/handler)
  • Basic Auth (please use it over a HTTPS reverse proxy)

Dependencies

The core parts of Ketchup are all depedency free, that includes Ketchup.Httpd and Ketchup.Utils (and to a certain extent, Ketchup.Chunked). The dependencies required are for the following modules:

  • Ketchup.Static (uses mime-types)
  • Ketchup.Auth (uses base64-bytestring)

A word of warning

Ketchup is not a competitor to Snap / Happstack / Yesod / etc., Being designed to be small, Ketchup doesn't have or care about high performance / templating etc., Ketchup doesn't even have HTTPS!