Micronaut HTTP客户端exchange与retrieve的比较

huangapple go评论60阅读模式
英文:

Micronaut http client exchange vs retrieve

问题

exchangeretrieve 方法在Micronaut HttpClient中有什么区别?

英文:

What are the differences between exchange and retrieve methods for Micronaut HttpClient?

答案1

得分: 2

返回类型。请参阅 HttpClient Javadoc

exchange 返回 完整的 HTTP 响应

retrieve 返回 HTTP 响应的主体。

英文:

The return type. See HttpClient Javadoc

exchange returns the full http response

Whereas retrieve returns the body of the http response.

huangapple
  • 本文由 发表于 2023年6月27日 19:07:37
  • 转载请务必保留本文链接:https://go.coder-hub.com/76564239.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定