Kill feign and release spring cloud square components
What is Spring Cloud Square
When talking about Spring Cloud ecology, you must be familiar with Feign. As shown in the figure below, Feign can hide the Rest requests of the underlying (okhttp, httpclient) and pretend to be similar to the Controller of spring MVC. You don't have to splice URLs, splice parameters and other operations by yourself. ...
Added by mikewooten on Fri, 04 Mar 2022 05:22:52 +0200
OKHttp source code analysis
Okhttp is a commonly used network framework. Okhttp is developed by square company. It is necessary to master the usage of okhttp and its internal working principle.
1, Introduction mode
1.gradle introduction
implementation 'com.squareup.okhttp3:okhttp:3.14.7'
implementation 'com.squareup.okio:okio:1.17.5'
2. Authority
<use ...
Added by Thoughtless on Tue, 08 Feb 2022 02:57:03 +0200
okhttp file upload failed. Is it Android Studio?
preface
This case is a real case I encountered. The process of finding the cause once made me collapse. I believe many people have encountered the same problem, so I want to record it and help you. This case uses RxHttp 2.6.4 + OkHttp 4.9.1 + Android Studio 4.2.2. Of course, if you use other frameworks based on OkHttp encapsulation such as Ret ...
Added by rickead2000 on Mon, 17 Jan 2022 03:43:17 +0200
The "basic operation" uploaded by OkHttp breakpoint is really unknown?
1. Foreword
Students often ask: how to upload files at breakpoints?
Breakpoint upload / download is a common scenario on the client. When we need to upload or download a large file, we will consider using breakpoint continuation.
The biggest difference between breakpoint upload and breakpoint download lies in the record of breakpoint locatio ...
Added by homer09001 on Sat, 15 Jan 2022 22:29:57 +0200
Okhttp cache policy acquisition
Okhttp cache policy acquisition
In the cache interceptor, we mentioned that the second step is to obtain a cache policy object CacheStrategy
What is CacheStrategy and what is its use
Direct code
/**
* Given a request and a cached response, this determines whether to use network, cache, or both.
*/
public final class CacheStrategy {
...
Added by gilbertwang on Tue, 04 Jan 2022 01:35:18 +0200
[knowledge points] OkHttp principle 8 questions
prefaceOkHttp can be said to be the most common network request framework in Android development. OkHttp is easy to use, extensible and powerful. OkHttp source code and principle are also frequent visitors in the interview However, OKHttp has a lot of source code content. If you want to learn its source code, you are often confused and can't g ...
Added by tnkannan on Thu, 16 Dec 2021 09:49:08 +0200
Android Getting Started tutorial | OkHttp getting started
OkHttp is an HTTP client.characteristic:Connection pooling reduces request latency (when HTTP/2 is not available)Reduce download volume when transmitting GZIPCache replies to the same requestOkHttp can recover silently from connection failure. If the service has multiple IP addresses, it will try other addresses if the first access fails. This ...
Added by roy on Mon, 22 Nov 2021 08:02:21 +0200
Android implements request HTTP authentication
These days, the development of external SDK, can achieve landing, payment.Similar to developing a set of QQ, WeChat third party login.The authorization protocol used is OAuth 2.0.Among them, Http Authentication is used, and you can consult the online materials. There are all kinds of answers, some don't know if they have been verified, and some ...
Added by ekalath on Fri, 10 Jul 2020 17:54:48 +0300
Stop using a single framework, XUtils - you deserve it!
Details of XUtils
1, What are XUtils?
brief introduction
Configuration before use
2, XUtils loading pictures
ImageOption
Load network picture
Load Android resource pictures
Load sd card picture
3, XUtils request network
RequestParams
get request
post request
4, Use summary
...
Added by u01jmg3 on Wed, 20 May 2020 13:51:48 +0300
RxHttp, a more elegant protocol experience than Retrofit
1. Preface
Hello, you little friends, have met again. Looking back, RxHttp We are about to have our anniversary birthday (launched in April 19). This year, we have come over with sincerity.... Sincerity is not easy. Code maintenance, writing articles, writing documents, etc. are often done after zero o'clock. It is also the first time that I sp ...
Added by Jordi_E on Mon, 20 Apr 2020 19:24:27 +0300