Which OkHttp feature can add an Authorization header to every request automatically?

  1. Interceptor
  2. Converter
  3. Dispatcher
  4. Adapter
Answer

A) Interceptor

Interceptors modify requests and responses.

Computer Science MCQ · More Web Services: Accessing and Creating MCQs · Practise