类 RequestInterceptor

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

    public class RequestInterceptor
    extends Object
    implements okhttp3.Interceptor
    HTTP请求拦截处理 处理请求头Host与实际请求URL不一致问题
    作者:
    frankcl
    • 构造器详细资料

      • RequestInterceptor

        public RequestInterceptor()
    • 方法详细资料

      • intercept

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