http-test: Test framework for HTTP APIs

[ bsd3, library, program, test, web ] [ Propose Tags ]

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
Versions [faq] 0.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, 0.2.5
Dependencies aeson, base (==4.*), bytestring, http-client, http-test, lens, mtl, tasty, tasty-hunit, text, time, wreq [details]
License BSD-3-Clause
Author OpenBrain Ltd
Category Test, Web
Home page
Bug tracker
Source repo head: git clone
Uploaded by glutamate at 2014-08-30T16:34:26Z
Distributions NixOS:0.2.5
Executables test-http-test-bayeshive
Downloads 10272 total (20 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs not available [build log]
All reported builds failed as of 2016-12-13 [all 7 reports]


  • Test
    • Test.HTTP


Maintainer's Corner

For package maintainers and hackage trustees