Here is an example to configure the client to use HTML with Jsoup
client = new HttpPoet(url: "https://fr.wikipedia.org", contentType: ContentType.JSON, acceptContentType: ContentType.HTML).tap { parsers[ContentType.HTML] = { def body -> Jsoup.parse(body.string()) } } document = client.get("/wiki/Groovy_(langage)")
There was an error while loading. Please reload this page.