pullOgPage function
Implementation
Future<Map<String, String>> pullOgPage(String url) async {
return await HttpClient()
.getUrl(Uri.parse(url)) // produces a request object
.then((request) => request.close()) // sends the request
.then((response) async {
if (response.statusCode == 200) {
final rs = await response.transform(utf8.decoder).join();
return ogParse(rs);
}
return {};
});
}