A trait that wraps the Apache Commons HTTP client and supports GET and POST
The response to an HTTP request, as long as the server responds with *SOMETHING*
The response to an HTTP request, as long as the server responds with *SOMETHING*
A trait for reporting failures
Mix this trait into your test so you can make HTTP requests on a target
A response returned from an HTTP request.
A legacy test framework
Mix this trait into your test so you can make HTTP requests on a target
The response to an HTTP request, as long as the server responds with *SOMETHING*
A response returned from an HTTP request. Responses can be chained and tested in a for comprehension:
implicit val for { login <- post("/api/login", "user" -> "me", "pwd" -> "me") !@ "Failed to log in" info <- login.get("/api/info") if info.bodyAsString must_== "My Info" moreInfo <- info.post("/api/moreInfo", <info>Some Info</info>) } moreInfoheaders("X-MyInfo") must_== List("hello", "goodbye")