LCOV - code coverage report | ||||||||||||||||||||||
![]() | ||||||||||||||||||||||
|
||||||||||||||||||||||
![]() |
Line data Source code 1 : import 'package:http/http.dart' as http; 2 : 3 : typedef HTTPClient = http.Client; 4 : 5 : abstract class HTTPService { 6 : static HTTPClient? _client; 7 : 8 6 : static HTTPClient get client { 9 6 : _client ??= HTTPClient(); 10 : return _client!; 11 : } 12 : 13 : //Add headers to the request 14 0 : static Future<http.Response> getWithHeaders(String url, 15 : {Map<String, String>? headers}) { 16 0 : return client.get(Uri.parse(url), headers: headers); 17 : } 18 : } |
![]() |
Generated by: LCOV version 2.0-1 |