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
Upload dateTue Sep 30 13:04:05 UTC 2014
Uploaded byglutamate
Downloads1002 total (131 in last 30 days)




Maintainers' corner

For package maintainers and hackage trustees