The HTTP package

[Tags: bsd3, library]

A package for sending and receiving HTTP requests and responses, all implemented in Haskell (assuming you've already got a network stack to spare, via the network package!) The representation of content of in requests and responses is user-controllable, letting you pick a representation that fits your code better (e.g., use ByteStrings rather than the default Haskell Strings.) Example uses:

    do
      rsp <- Network.HTTP.simpleHTTP (getRequest "http://www.haskell.org/")
              -- fetch document and return it (as a 'String'.)
      fmap (take 100) (getResponseBody rsp)

    do
      rsp <- Network.Browser.browse $ do
               setAllowRedirects True -- handle HTTP redirects
               request $ getRequest "http://google.com/"
      fmap (take 100) (getResponseBody rsp)

Git repository available at git://code.galois.com/HTTPbis.git


Properties

Versions3000.0.0, 3001.0.0, 3001.0.1, 3001.0.2, 3001.0.3, 3001.0.4, 3001.1.3, 3001.1.4, 3001.1.5, 4000.0.0, 4000.0.1, 4000.0.2, 4000.0.3, 4000.0.4, 4000.0.5, 4000.0.6, 4000.0.7, 4000.0.8, 4000.0.9, 4000.0.10, 4000.1.0, 4000.1.1, 4000.1.2, 4000.2.0, 4000.2.1, 4000.2.2, 4000.2.3, 4000.2.4, 4000.2.5, 4000.2.6, 4000.2.7, 4000.2.8, 4000.2.9, 4000.2.10, 4000.2.11, 4000.2.12, 4000.2.13, 4000.2.14, 4000.2.15, 4000.2.16, 4000.2.17
Dependenciesbase (==2.*), mtl, network, parsec or
array, base (==3.*), bytestring, mtl, network, old-time, parsec
LicenseBSD3
CopyrightCopyright (c) 2002, Warrick Gray Copyright (c) 2002-2005, Ian Lynagh Copyright (c) 2003-2006, Bjorn Bringert Copyright (c) 2004, Andre Furtado Copyright (c) 2004, Ganesh Sittampalam Copyright (c) 2004-2005, Dominic Steinitz Copyright 2007 Robin Bate Boerop Copyright 2008- Sigbjorn Finne
AuthorWarrick Gray <warrick.gray@hotmail.com>
MaintainerSigbjorn Finne <sigbjorn.finne@gmail.com>
CategoryNetwork
Home pagehttp://projects.haskell.org/http/
Upload dateSun Aug 9 18:10:20 UTC 2009
Uploaded bySigbjornFinne
DistributionsDebian:4000.2.3, Fedora:4000.2.8, FreeBSD:4000.2.8, NixOS:4000.2.17
Downloads76153 total (10841 in last 30 days)

Modules

[Index]

Flags

NameDescriptionDefault
old-baseOld, monolithic baseDisabled

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

Downloads

Maintainers' corner

For package maintainers and hackage trustees