Groovy built-in REST/HTTP client?

前端 未结 7 986
迷失自我
迷失自我 2020-11-28 19:51

I heard that Groovy has a built-in REST/HTTP client. The only library I can find is HttpBuilder, is this it?

Basically I\'m looking for a way to do

7条回答
  •  一向
    一向 (楼主)
    2020-11-28 20:05

    The simplest one got to be:

    def html = "http://google.com".toURL().text
    

提交回复
热议问题