http-test-0.1.5: http-test.cabal
Name: http-test
Version: 0.1.5
synopsis: Test framework for HTTP APIs
Description: A simple framework for making assertions about the
responses of HTTP servers.
.
> import Test.HTTP
> import Data.List (isInfixOf)
>
> main = httpTest $ do
> session "BayesHive landing page" "https://bayeshive.com" $ do
> landing <- get "/"
> assert "Correct blog link" $
> "href=\"https://bayeshive.com/blog\"" `isInfixOf` landing
> loginResult <- postForm "/auth/page/email/login"
> [("email", "foo"), ("password", "bar")]
> debug loginResult
License: BSD3
Author: OpenBrain Ltd
Maintainer: tomn@openbrain.org
build-type: Simple
Cabal-Version: >= 1.8
homepage: https://github.com/openbrainsrc/http-test
bug-reports: https://github.com/openbrainsrc/http-test/issues
Category: Test, Web
license-file: LICENSE
Source-Repository head
Type: git
Location: https://github.com/openbrainsrc/http-test
Library
Exposed-modules: Test.HTTP
Build-depends: base >= 4 && < 5
, mtl >= 2.1 && < 2.2
, curl >= 1.3.8 && < 2
, aeson >= 0.6 && < 0.8
, safe >= 0.2 && < 0.4
, stm >= 2.4 && < 2.5
, text >= 0.10 && < 1.2
, bytestring
executable test-http-test
main-is: test.hs
Build-depends: base >= 4 && < 5
, mtl >= 2.1 && < 2.2
, curl >= 1.3.8 && < 2
, aeson
, safe >= 0.2 && < 0.4
, stm >= 2.4 && < 2.5
, text
, bytestring
, http-test