Last updated:
0 purchases
mitmproxy ri client
mitmproxy_ri_client #
A Dart client for the mitmproxy Remote Interceptions addon.
Features #
This package enables access to all functionality provided by the mitmproxy Remote Interceptions addon, including:
A HTTPS-compatible proxy server provided by mitmproxy
Interception and modification of all HTTP(S) requests and responses
Dynamic interception filtering based on summarised request and response data
Usage #
Quick start #
Familiarize yourself with mitmproxy and the mitmproxy Remote Interceptions addon.
Import the package:
import 'package:mitmproxy_ri_client/mitmproxy_ri_client.dart' as mitm_ri;
copied to clipboard
Now, intercept to your heart's content:
final client = await mitm_ri.Client.connect(
// Add a header to every response.
handleResponse: (request, response) {
return mitm_ri.MessageSet(
response: response!.copyWith(
headers: {
...response.headers,
'X-MITM-Dart-Example': ['Hello, world!'],
},
),
);
},
);
copied to clipboard
Additional information #
The interception flow is described in detail in the mitmproxy Remote Interceptions addon WebSocket API
documentation.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.