| OLD | NEW |
| 1 library googleapis.common_internal; | 1 library googleapis.common_internal; |
| 2 | 2 |
| 3 import "dart:async"; | 3 import "dart:async"; |
| 4 import "dart:convert"; | 4 import "dart:convert"; |
| 5 import "dart:collection" as collection; | 5 import "dart:collection" as collection; |
| 6 | 6 |
| 7 import "package:crypto/crypto.dart" as crypto; | 7 import "package:crypto/crypto.dart" as crypto; |
| 8 import "../common/common.dart" as common_external; | 8 import "../common/common.dart" as common_external; |
| 9 import "package:http/http.dart" as http; | 9 import "package:http/http.dart" as http; |
| 10 | 10 |
| 11 const String USER_AGENT_STRING = | 11 const String USER_AGENT_STRING = |
| 12 'google-api-dart-client googleapis/0.1.0'; | 12 'google-api-dart-client googleapis/0.1.1'; |
| 13 | 13 |
| 14 const CONTENT_TYPE_JSON_UTF8 = 'application/json; charset=utf-8'; | 14 const CONTENT_TYPE_JSON_UTF8 = 'application/json; charset=utf-8'; |
| 15 | 15 |
| 16 /** | 16 /** |
| 17 * Base class for all API clients, offering generic methods for | 17 * Base class for all API clients, offering generic methods for |
| 18 * HTTP Requests to the API | 18 * HTTP Requests to the API |
| 19 */ | 19 */ |
| 20 class ApiRequester { | 20 class ApiRequester { |
| 21 final http.Client _httpClient; | 21 final http.Client _httpClient; |
| 22 final String _rootUrl; | 22 final String _rootUrl; |
| (...skipping 862 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 885 assert(key != null); | 885 assert(key != null); |
| 886 if(convert == null) { | 886 if(convert == null) { |
| 887 result[key] = value; | 887 result[key] = value; |
| 888 } else { | 888 } else { |
| 889 result[key] = convert(value); | 889 result[key] = convert(value); |
| 890 } | 890 } |
| 891 }); | 891 }); |
| 892 return result; | 892 return result; |
| 893 } | 893 } |
| 894 | 894 |
| OLD | NEW |