mirror of
https://github.com/wanghongenpin/proxypin.git
synced 2026-04-03 08:05:06 +08:00
13 lines
422 B
Dart
13 lines
422 B
Dart
import 'package:network_proxy/network/http/http.dart';
|
|
|
|
/// A Interceptor that can intercept and modify the request and response.
|
|
/// @author Hongen Wang
|
|
abstract class Interceptor {
|
|
|
|
/// Called before the request is sent to the server.
|
|
HttpRequest? onRequest(HttpRequest request);
|
|
|
|
/// Called after the response is received from the server.
|
|
HttpResponse? onResponse(HttpRequest request, HttpResponse response);
|
|
}
|