RetroFit2
Configuring a HTTP Logging Interceptor for the OkHttpClient
Autoplay
Up next
Previous
About
In this Lesson you will learn:
- How and why its useful to have HTTP Logging within Retrofit
- How to build a custom OkHttpClient
- How to add an interceptor to your custom OkHttpClient
- How to configure different logging levels for different build configurations
- What the different logging levels provide
Links
- Retrofit Documentation
Instructor
Links
Comments
Hey Donn, thanks for showing how to reduce the logs for the release build variants. That is one of the things our QA team has been complaining about for security reasons for a while and this will come in handy.
I couldn't hold myself and made a Pull Request before going to bed to have this sorted out as soon as possible.
Lessons in RetroFit2
1. Setting up Retrofit 2 and Issuing a HTTP GET Request
Pro
06:15
2. Exploring Get Requests with @Query and @Path Parameters via Annotations

Pro
05:25
3. Configuring a HTTP Logging Interceptor for the OkHttpClient

Pro
08:16
4. Issuing HTTP POST Requests with @Body and @Field Parameters

Pro
05:00
5. Issuing HTTP PUT Requests to Update Entities with the @Body and @Path Annotations

Pro
04:46
6. Issuing HTTP DELETE Requests

Pro
03:03
7. Caching Requests and Responses with the Cache-Control Header

Pro
05:43
8. Enabling an Offline Cache with OkHttp

07:39
9. Using HTTP PATCH Requests to Update Portions of an Entity

Pro
04:18
10. Unit Testing with Mockito

Pro
08:31
11. Modifying Request URLs and Headers with OkHttp

Pro
06:29
12. Retrofit 2 with RxJava

Pro
05:19

Something went wrong
Lesson added to playlist
Create new playlist
Name can't be empty