文档显示 Http 客户端应该设置一个 URL 或一个服务 ID 来实例化:
@Client("https://api.twitter.com/1.1")
@Inject
RxHttpClient httpClient;
如何使用一个 HttpClient 实例请求多个不同域的 URL?
@Client
@Inject
RxHttpClient httpClient;
httpClient.retrieve( HttpRequest.GET("https://twitter.com/") )
httpClient.retrieve( HttpRequest.GET("https://www.google.com/") )
代码将返回错误:
No value specified for @Client\r\nPath Taken