4

OkHttp Interceptors in Android

 2 years ago
source link: https://www.raywenderlich.com/20781027-okhttp-interceptors-in-android
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
OkHttp Interceptors in AndroidGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupShapeGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroup

Expert Swift, First Edition — Now Available!

Level up your Swift knowledge to bring more power and flexibility to your projects.
Secure your spot as an expert Swift developer and set yourself apart from the rest.
Start reading for free — today!

This course is available as part of the raywenderlich.com Professional subscription. To learn more click here

OkHttp Interceptors in Android

May 25 2021 · Video Course (23 mins) · Intermediate

Learn how to use OkHttp Interceptors to intercept network requests, log them and also modify them on the fly.

4/5 1 Rating

Version

  • Kotlin 1.4, Android 5, Android Studio 4.1

Implementing OkHttp Interceptors

Find out what OkHttp Interceptors are. Learn the difference between Application and Network Interceptors.

Generate a TheMovieDB API key and use it to get the starter project running.

Log and debug API calls by implementing a custom Interceptor. Learn about the different logging levels.

Use a custom logging client to control how the Interceptor logs the API calls and also redact sensitive information from the logs.

Implement an Interceptor that adds the API key to all API calls and avoid duplication of effort.

Learn how to implement an Interceptor to add custom headers that are useful for analytics.

Who is this for?

This course is for Android developers who want to monitor and modify network calls at the application and network levels, in turn simplifying network operations.

Covered concepts

  • Initializing OkHttp Interceptors
  • Choosing between Application and Network Interceptors
  • Logging network data with different log levels
  • Redacting sensitive information from network logs
  • Debugging network errors
  • Adding authentication token to all API calls
  • Adding custom headers useful for analytics

Contributors

Subhrajyoti Sen

I am an Android Developer at KeepTruckin. I am passionate about creating good mobile experiences and sharing my learnings with...

Instructor
Filip Babić

Android developer with a huge passion for learning, teaching, and discussing technologies. Public speaker, mentor, video...

Tech Editor
Adriana Kutenko

Graphic Illustrator with a Bachelor’s Degree in Fine Arts. I am a perpetual perfection seeker with a big passion for History...

Illustrator

Comments

Average Rating

4/5

Add a rating for this content

Sign in to add a rating
1 rating

All videos. All books.
One low price.

A raywenderlich.com subscription is the best way to learn and master mobile development — plans start at just $19.99/month!

Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.

The largest and most up-to-date collection of courses and books on iOS, Swift, Android, Kotlin, Flutter, Dart, Server-Side Swift, Unity and more!

All videos. All books. One low price.

A raywenderlich.com subscription is the best way to learn and master mobile development — plans start at just $19.99/month!

Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalogue of 50+ books and 4,000+ videos.

  • © 2021 Razeware LLC
  • Made with ♥ from around the world
  • 6000+ Tutorials and counting

raywenderlich.com and our partners use cookies to understand how you use our site and to serve you personalized content and ads. By continuing to use this site, you accept these cookies, our privacy policy and terms of service .


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK