更新时间:2023-11-30 13:08:28
我认为您正在寻找 header(name,value) 方法.见 WebResource.header(String, Object)
I think you're looking for header(name,value) method. See WebResource.header(String, Object)
请注意,它返回一个 Builder,因此您需要将输出保存在您的 webResource 变量中.
Note it returns a Builder though, so you need to save the output in your webResource var.