flutter_network_inspector 0.0.8 flutter_network_inspector: ^0.0.8 copied to clipboard
This package helps you to monitor networks calls done using the http package with in the app. if you are using the dart's http package and not using any third party packages, you an use this library t [...]
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}');