handle method

  1. @override
Future<Response> handle(
  1. Request request
)

Implementation

@override
Future<Response> handle(Request request) async {
  onRequest?.call(request);
  final response = await handler.handle(request);
  onResponse?.call(response);
  return response;
}