getPage method
Fetches a full Smartschool page (GET).
Implementation
Future<InspectionResult> getPage(String path) async {
final uri = _uri(path);
final response = await _client.dio.getUri<String>(uri);
return InspectionResult(
uri: uri,
method: 'GET',
statusCode: response.statusCode ?? 0,
headers: _flattenHeaders(response.headers),
body: response.data ?? '',
);
}