The http-test package

[Tags: bsd3, library, program]

A simple framework for making assertions about the responses of HTTP servers.

 import Test.HTTP
 import Data.List (isInfixOf)

 main = defaultMain $ httpTestCase "BayesHive landing page" "" $ do
     landing <- get "/"
     assert "Correct blog link" $
       "href=\"\"" `isInfixOf` landing
     loginResult <- postForm "/auth/page/email/login"
                      [("email", "foo"), ("password", "bar")]
     debug loginResult


Versions0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.1.5, 0.1.6, 0.1.7, 0.2,,,,,,, 0.2.3, 0.2.4
Dependenciesaeson, base (==4.*), bytestring, http-client, http-test, lens (>=4.4), lens-aeson, mtl, tasty, tasty-hunit, text, time, wreq
AuthorOpenBrain Ltd
CategoryTest, Web
Home page
Bug tracker
Source repositoryhead: git clone
UploadedTue Sep 30 13:04:05 UTC 2014 by glutamate
Downloads1095 total (96 in last 30 days)
StatusDocs uploaded by user
Build status unknown [no reports yet]




Maintainers' corner

For package maintainers and hackage trustees