Retrofit所有知识场景汇总
https://futurestud.io/blog/retrofit-getting-started-and-android-client
Retrofit Series Overview
- Getting Started and Create an Android Client
- Basic Authentication on Android
- Token Authentication on Android
- OAuth on Android
- Multiple Query Parameters of Same Name
- Synchronous and Asynchronous Requests
- Send Objects in Request Body
- Define a Custom Response Converter
- Add Custom Request Header
- Optional Query Parameters
- How to Integrate XML Converter
- Using the Log Level to Debug Requests
- How to Upload Files to Server
- Series Round-Up
- Retrofit 2 — Upgrade Guide from 1.9
- Retrofit 2 — How to Upload Files to Server
- Retrofit 2 — Log Requests and Responses
- Retrofit 2 — Hawk Authentication on Android
- Retrofit 2 — Simple Error Handling
- How to use OkHttp 3 with Retrofit 1
- Retrofit 2 — Book Update & Release Celebration
- Send Data Form-Urlencoded
- Send Data Form-Urlencoded Using FieldMap
- Retrofit 2 — Manage Request Headers in OkHttp Interceptor
- Retrofit 2 — How to Add Query Parameters to Every Request
- Retrofit 2 — Add Multiple Query Parameter With QueryMap
- Retrofit 2 — How to Use Dynamic Urls for Requests
- Retrofit 2 — Url Handling, Resolution and Parsing
- Retrofit 2 — Constant, Default and Logic Values for POST and PUT Requests
- Retrofit 2 — How to Download Files from Server
- Retrofit 2 — Cancel Requests
- Retrofit 2 — Reuse and Analyze Requests
- Retrofit 2 — How to Change API Base Url at Runtime
- Optional Path Parameters
- How to Refresh an Access Token
- Retrofit 2 — How to Send Plain Text Request Body
- Retrofit 2 — Pagination Using Query Parameter
- Retrofit 2 — Pagination Using Link Header and Dynamic Urls (Like GitHub)
- Retrofit 2 — Pagination Using Range Header Fields (Like Heroku)
- Retrofit 2 — Introduction to (Multiple) Converters
- Retrofit 2 — Adding & Customizing the Gson Converter
- Retrofit 2 — Implementing Custom Converters
- Retrofit 2 — Enable Logging for Development Builds Only
- Retrofit 2 — How to Upload Multiple Files to Server
- Retrofit 2 — Passing Multiple Parts Along a File with @PartMap
- Retrofit 2 — Basics of Mocking Server Responses
- Retrofit 2 — Customizing Network Behavior of Mocked Server Responses