How can I get raw text(not json) of response after httpGet()?


I try to read data from server (e.g. GET /token)
But API response is not a JSON.
So, below code doesn’t work

httpGet(url) { resp ->
def result =

my response is just text, so It seems to fail parsing response to Object
I found that “resp.entity.content.text” … but it makes exception…(security)

Plz help me TT