day36 rx family barrel

brief introduction Rx(Reactive Extensions) is a library used to handle events and asynchronous tasks. It is implemented in many languages. RxJava is the implementation of Rx in Java. In short, RxJava is a library for handling asynchrony, which is basically based on the observer pattern. Through the me ...

Posted on Sat, 05 Oct 2019 13:06:57 -0700 by silent

Android encapsulates Retrofit2+OkHttp3+RxJava network requests

Now, Retrofit+RxJava+OkHttp is the most popular option in Android market. It is powerful and easy to use, so this solution is chosen to transform the network library. Introduction: Retrofit: Retrofit is a framework developed by Square Corporation that is requesting Android networks.The underlying implementation is based on OkHttp, which has bee ...

Posted on Wed, 14 Aug 2019 19:09:25 -0700 by AncientSage

Network request encapsulation based on retorfit and protocol in DSL form

Preface It has been a long time since the formal version of the coroutine was published. Compared with threads, coroutines occupy less resources and can switch threads more conveniently. Since retrofit 2.6.0, retrofit can directly support the use of OH and the protocol. Then I'll show you how to quick ...

Posted on Tue, 06 Aug 2019 01:30:27 -0700 by tjmbc

Black Horse Programmer Tenth Power Micro-service Project Development Practice, Tenth Power Project Spring Cloud Preliminary Exploration

1. Development of Eureka Server (1) Create tensquare_eureka module (2) Introducing a Spring Cloud version that relies on the parent project pom.xml <dependencyManagement> <dependencies> <dependency> <groupId>org.springframework.cloud</ ...

Posted on Sun, 28 Jul 2019 23:48:24 -0700 by phpusr

[Android Component Interpretation] Initial exposure to Retrofit

When it comes to web libraries, you think of Google's HuttpUrlConnection and Apache's HuttpClient. Google recommends using HttpUrlConnection instead of HttpClient HttpClient has been discarded in Android6.0 (Tucao: obviously HttpClient is more powerful). To see why HttpClient was abandoned, you can see Why did Google recommend using HttpURLCon ...

Posted on Fri, 12 Jul 2019 12:28:34 -0700 by renekosterman

Android RxJava+Retrofit Network Anomalies and State Code Unified Processing

Android RxJava+Retrofit Network Abnormal Capture and Unified Processing of Status Code Preface Recently, RxJava+Retrofit has been used for development. In the project, there is a need to obtain and display the corresponding Message and StatusCode when requesting data exceptions from the network, such as: 1. Server Connection Error: Return ...

Posted on Sun, 07 Jul 2019 17:40:40 -0700 by p0pb0b

Rxjava 2.0 + Retrofit Perfect Encapsulation

There is no doubt that RxJava+Retrofit+Mvp is the most popular Android technology in 2016. Now it's almost half way past 2017. I believe that small partners who are Android developers are no strangers to RxJava and Retrofit. Even if you haven't studied it deliberately, you should know a little about RxJavahe and Retrofit. Last year, I learned ...

Posted on Thu, 04 Jul 2019 18:33:42 -0700 by HuggieBear

Introduction to Retrofit Use

Retrofit is an open source library for network requests developed by Square. It encapsulates okhttp internally and is perfectly compatible with RxAndroid, which makes Android development more efficient and makes the code more readable. This study is based on the previous okhttp study, and the service side of the program is built and compl ...

Posted on Thu, 04 Jul 2019 12:40:28 -0700 by cleromancer

Retrofit Source Code Analysis

 The first is to add a reference to retrofit to the project. compile 'com.squareup.retrofit2:retrofit:2.2.0' Here I will analyze the source code of retrofit directly. I. How to Use Retrofit Let's first look at a more basic piece of code. public interface GithubService{ @GET("user/{user}/repos") Call<List<ResponseBody> ...

Posted on Wed, 03 Jul 2019 14:02:31 -0700 by Jeremysr

Retrofit2 Source Analysis (Clear Edition)

In the gradle configuration, a reference to retrofit is added. compile'com.squareup.retrofit2:retrofit:2.2.0' This article mainly analyses the underlying principles of the retrofit 2 framework. I downloaded version 2.2.0. I. How to Use Retrofit Let's first look at how Retrofit works. public interface GithubService{ @GET("user/{user} ...

Posted on Tue, 25 Jun 2019 16:57:25 -0700 by dreamcaster