OkHttp usage details

Today I learned OkHttp and made a summary here. I hope it can help people in need. Well, don't talk more nonsense and get to the point.1, OkHttp introductionOkHttp is an excellent network request framework. When it comes to network request framework, many people may think of volley. Volley is a network request framework provided by Google. My b ...

Posted by jpratt on Fri, 03 Dec 2021 15:11:37 -0800

Java converts PDF/XPS to Word/html/SVG/PS/PCL/PNG, PDF and XPS interoperability

Spire.Cloud.SDKFor Java provides the interface PdfConvertApi to convert PDF and XPS documents into specified document formats by converting (), such as converting PDF to Word (Docx, Doc), Html, XPS, SVG, PS, PCL, PNG, and converting XPS to Word (Docx, Doc), Html, PDF, SVG, PS, PCL, PNG, etc.).The text will show you how to do this through Java ...

Posted by fadedline on Tue, 23 Jun 2020 10:26:30 -0700

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