请问 android 开发这里的最后一行 return proceed 是啥意思

public final Response intercept(Chain chain) {
        Builder builder;
        int i2;
        k.b(chain, "chain");
        Request request = chain.request();
        k.a(request, "chain.request()");
        com.xingin.skynet.a.a aVar = com.xingin.skynet.a.a;
        if (com.xingin.skynet.a.b) {
            if (request.header(this.o) != null) {
                StringBuilder sb = new StringBuilder();
                sb.append(this.o);
                sb.append(" 需要统一设置");
                throw new IllegalArgumentException(sb.toString());
            } else if (request.header(this.p) != null) {
                StringBuilder sb2 = new StringBuilder();
                sb2.append(this.p);
                sb2.append(" 需要统一设置");
                throw new IllegalArgumentException(sb2.toString());
            }
        }
        RequestBody body = request.body();
        String method = request.method();
        int i3 = 0;
        boolean z = !k.a("GET", method) && !k.a("DELETE", method);
        if (z) {
            if (body instanceof FormBody) {
                i2 = this.m;
            } else if (body instanceof MultipartBody) {
                i2 = this.n;
            }
            i3 = i2;
        }
        if (!z) {
            builder = a(request);
        } else if (i3 == this.m) {
            builder = b(request);
        } else if (i3 == this.n) {
            builder = c(request);
        } else {
            builder = request.newBuilder();
            k.a(builder, "request.newBuilder()");
        }
        builder.header(this.o, this.r.i).header(this.p, (String) this.r.a.invoke());
        Response proceed = chain.proceed(builder.build());
        k.a(proceed, "chain.proceed(newRequestBuilder.build())");
        return proceed;
    }
阅读 2k
1 个回答

返回了整个网络请求拦截器责任链执行后的一网络响应

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题