package com.example.day18; import java.io.IOException; import okhttp3.HttpUrl; import okhttp3.Request; import okhttp3.Response; /** * Created by 。。。。 on 2018/10/24. */ public class Interceptor implements okhttp3.Interceptor{ @Override public Response intercept(Chain chain) throws IOException { Request request=chain.request(); String method=request.method(); HttpUrl url=request.url(); Response response=chain.proceed(request); return response; } }
网络拦截器
最新推荐文章于 2025-03-25 14:50:36 发布