couldn't see the Api request headers #8037
Labels
bug
Something isn't working
P1
high priority issues at the top of the work list, actively being worked on.
screen: network
Issues with the Network screen.
class GetList {
static Future list(ev, tblName1, tblName2) async {
http.Response response;
String lasyP = isEmptyObj(ev) ? '' : jsonEncode(ev);
Map<String, String> headers = {'Content-Type': 'application/json'};
response = await http.get(Uri.parse("$apiUrl/$tblName1/$tblName2/$lasyP"),headers: headers);
if (response.statusCode == 200) {
return json.decode(response.body);
} else {
return {
'statusCode': response.statusCode,
'message': json.decode(response.body)['message']
};
}
}
}
This is my Api function, here i declare the content-type as JSON in the headers . But when i call the function its not show the headers response it only shows the OverView tab. And there the content-type is showing websocket . So how to resolve this ?
DevTools version: 2.36.0
Connected Device:
CPU / OS: arm (32 bit) android
Connected app type: Flutter native (debug build)
Dart Version: 3.5.0-299.0.dev
Flutter Version: 3.23.0-14.0.pre.30 / master
Framework / Engine: b958b8750d / 25af762ffb
The text was updated successfully, but these errors were encountered: