requestInterceptor property

  1. @override
RequestInterceptor? get requestInterceptor
inherited

Request interceptor. Called right before request is sent.

Implementation

@override
RequestInterceptor? get requestInterceptor => _requestInterceptor;
  1. @override
set requestInterceptor (RequestInterceptor? interceptor)
inherited

Set the request interceptor. Will throw if the request has already been sent.

Implementation

@override
set requestInterceptor(RequestInterceptor? interceptor) {
  verifyUnsent();
  _requestInterceptor = interceptor;
}