类 HostModifyInterceptor

  • 所有已实现的接口:
    okhttp3.Interceptor

    public class HostModifyInterceptor
    extends Object
    implements okhttp3.Interceptor
    Host修改拦截处理 当HTTP header中Host与实际请求Host不一致时,修正HTTP header
    作者:
    frankcl
    • 构造器详细资料

      • HostModifyInterceptor

        public HostModifyInterceptor()
    • 方法详细资料

      • intercept

        public okhttp3.Response intercept​(okhttp3.Interceptor.Chain chain)
                                   throws IOException
        指定者:
        intercept 在接口中 okhttp3.Interceptor
        抛出:
        IOException