AfterEffect typedef

AfterEffect = Future<void> Function({dynamic body, required Map<String, String> headers, required String method, required Response response, required Uri uri})

Executes after an HTTP response is received.

Allows inspection or side-effects based on the response.

Implementation

typedef AfterEffect =
    Future<void> Function({
      required String method,
      required Uri uri,
      required Map<String, String> headers,
      dynamic body,
      required http.Response response,
    });