okhttp-basicparamsinterceptor icon indicating copy to clipboard operation
okhttp-basicparamsinterceptor copied to clipboard

如果get 的网址带basic 协议,是应该怎么去操作加入账户信息呢?

Open Niekevin007 opened this issue 7 years ago • 1 comments

网址为这种格式:http://admin:[email protected]/get_status

Niekevin007 avatar Apr 26 '18 04:04 Niekevin007

@Niekevin007

chain.request().url().encodedUsername()
chain.request().url().encodedPassword()
chain.request().url().username()
chain.request().url().password()

interceptor 中这四个参数或许可以帮到你。

jkyeo avatar Apr 26 '18 04:04 jkyeo