EskomCalendar

- Documented `doGet(string)`
This commit is contained in:
Tristan B. Velloza Kildaire 2023-06-01 21:58:34 +02:00
parent f20ac32fd9
commit 03e9f4791c
1 changed files with 9 additions and 0 deletions

View File

@ -37,6 +37,15 @@ public class EskomCalendar
this("https://eskom-calendar-api.shuttleapp.rs/v0.0.1/");
}
/**
* Performs an HTTP GET request to the provided URL
* and wraps any exceptions in our `EskomCalendarException`
* type
*
* Params:
* url = the URL to perform a GET on
* Returns: the response body
*/
private final string doGet(string url)
{
try