Summary of OkHttp source code interpretation (VIII) -- > BridgeInterceptor

Summary of OkHttp source code interpretation (VIII) - > bridgeinterceptor Tags (space separated): learning notes of OkHttp source code Preface The following summary of relevant knowledge is based on the relevant learning and opinions of mooc.com. If you need to check the relevant teaching of mooc.com, you can st ...

Posted by bobthebuilder on Mon, 04 May 2020 08:25:20 -0700

Build MVC project from scratch

Preface This article mainly records how to build an MVP architecture. At the same time, it realizes the network request by combining with the mainstream frameworks such as Retrofit,RxJava,Okhttp, which is convenient for later review and rapid development. Project subcontracting Base: put some base classes, such a ...

Posted by VapiD on Sun, 03 May 2020 11:56:40 -0700

Analysis of HTTPS by OKhttp3

http://blog.csdn.net/lmj623565791/article/details/48129405 This article of Hongyang God is very clear, but with the revision of OKhttp, some methods no longer exist. for instance: mOkHttpClient.setSslSocketFactory(sslContext.getSocketFactory()); There is no such method. But as long as OKhttp still supports HTTPS ...

Posted by ErikTheViking on Sat, 02 May 2020 17:33:16 -0700

Zhihu daily client -- look at the section every day

After reading this article, you should learn how to show the photo wall and save the pictures to the local place. design sketch: The last one is about: The realization of Zhihu daily Knowledge points of this article include: Okhttp, Picasso, CardView, dynamic request permission, create file, folder, save picture. Layout first: Material ...

Posted by adrafa on Thu, 30 Apr 2020 00:46:42 -0700

Source code series -- OkHttp

OkHttp official website address: https://square.github.io/okhttp/ We talked about get request earlier. Let's take a look at post request package okhttp3.guide; import java.io.IOException; import okhttp3.MediaType; import okhttp3.OkHttpClient; import okhttp3.Request; import okhttp3.RequestBody; import okhttp3.Response; public class PostEx ...

Posted by md7dani on Tue, 28 Apr 2020 20:00:40 -0700

OkHttp implements automatic refresh of globally expired token s

#Problem encountered: App currently being developed has a problem: When an interface is requested, it will fail because the token is no longer valid.However, the product manager expects the app to refresh the token immediately and then repeat the request for the interface, which is insensitive to the user.>This means silent automatic login a ...

Posted by timandkitty on Tue, 28 Apr 2020 09:59:38 -0700

Summary of OkHttp source code interpretation (XIII) - > call server interceptor

Summary of OkHttp source code interpretation (XIII) - > call server interceptor Tags (space separated): learning notes of OkHttp source code Preface The following summary of relevant knowledge is based on the relevant learning and opinions of mooc.com. If you need to check the relevant teaching of mooc.com, you ...

Posted by seansd on Sun, 19 Apr 2020 08:15:11 -0700

Summary of okhttp 3.4.2 interceptor

I wrote one in 16 years Simple configuration of RxJava+Retrofit+OkHttp combination in network request , this article can be used as a supplement to it. As an important member of the okhttp interceptor, if we make good use of it, we will get twice the result with half the effort. First, let's look at the interceptor's core inte ...

Posted by krio on Fri, 03 Apr 2020 15:19:38 -0700

Rich text parser

From http://blog.csdn.net/stephen2wong/article/details/72235930 RichText Rich text parser on Android platform Streaming operation Low invasiveness Support Html and Markdown format text Support image click and long press events Link click event and long press event Support setting pictures in loading and loading errors Suppo ...

Posted by perrio on Tue, 24 Mar 2020 09:19:19 -0700

[Android] Retrofit source code learning

[Android] Retrofit source code learningThe process of using Retrofit#Create a Retrofit object through Builder:CopyRetrofit retrofit = new Retrofit.Builder().baseUrl("").addConverterFactory().build();Using Java annotation to describe APICopypublic interface MyApi { @GET("/api") Call<Data> getData(); }Create api object and Call object throu ...

Posted by jdiver on Fri, 20 Mar 2020 04:34:57 -0700