| CARVIEW |
Select Language
HTTP/1.1 200 OK
Connection: keep-alive
Server: nginx/1.24.0 (Ubuntu)
Content-Type: text/html; charset=utf-8
Cache-Control: public, max-age=300
Content-Encoding: gzip
Via: 1.1 varnish, 1.1 varnish
Accept-Ranges: bytes
Age: 0
Date: Sat, 17 Jan 2026 07:07:38 GMT
X-Served-By: cache-dfw-kdfw8210096-DFW, cache-bom-vanm7210049-BOM
X-Cache: MISS, MISS
X-Cache-Hits: 0, 0
X-Timer: S1768633658.140628,VS0,VE289
Vary: Accept, Accept-Encoding
transfer-encoding: chunked
http-test: Test framework for HTTP APIs
http-test: Test framework for HTTP APIs
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" "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
Downloads
- http-test-0.2.5.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
| Versions [RSS] | 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.0.1, 0.2.0.2, 0.2.0.3, 0.2.1.0, 0.2.2.0, 0.2.2.1, 0.2.3, 0.2.4, 0.2.5 |
|---|---|
| Dependencies | aeson, base (>=4 && <5), bytestring, http-client, http-test, lens (>=4.4), lens-aeson, mtl, tasty, tasty-hunit, text, time, wreq (>=0.4) [details] |
| License | BSD-3-Clause |
| Author | OpenBrain Ltd |
| Maintainer | tomn@openbrain.org |
| Uploaded | by glutamate at 2016-03-03T21:21:10Z |
| Category | Test, Web |
| Home page | https://github.com/openbrainsrc/http-test |
| Bug tracker | https://github.com/openbrainsrc/http-test/issues |
| Source repo | head: git clone https://github.com/openbrainsrc/http-test |
| Distributions | |
| Reverse Dependencies | 1 direct, 0 indirect [details] |
| Executables | test-http-test-bayeshive |
| Downloads | 12485 total (74 in the last 30 days) |
| Rating | (no votes yet) [estimated by Bayesian average] |
| Your Rating |
|
| Status | Docs available [build log] Last success reported on 2016-03-03 [all 1 reports] |