flutter_network_inspector 0.0.3 flutter_network_inspector: ^0.0.3 copied to clipboard
A package to inspect the network calls with in your app
This package helps you to monitor networks calls done using the http package with in the app.
Features #
Getting started #
Create a client for your network calls, which is an object of FNIClient. Then use this client to do all network calls.
final client = FNICLient();
final postResponse = await client.post(
Uri.parse('https://jsonplaceholder.typicode.com/posts'),
headers: {'Content-Type': 'application/json'},
body: '{"title": "foo", "body": "bar", "userId": 1}',
);
doLog('Final Response: ${postResponse.body}');
Usage #
final client = FNICLient();
final postResponse = await client.post(
Uri.parse('https://jsonplaceholder.typicode.com/posts'),
headers: {'Content-Type': 'application/json'},
body: '{"title": "foo", "body": "bar", "userId": 1}',
);
doLog('Final Response: ${postResponse.body}');