bind method

void bind(
  1. Dio dio
)

To bind the plugin to dio, make sure to add this plugin last.

Implementation

void bind(Dio dio) {
  dio.interceptors.add(DomainFrontingInterceptorRequest(this));
  dio.interceptors.insert(0, DomainFrontingInterceptorResponse(dio, this));
}