1 | /**
|
2 | * Interface responsible for HTTP communication on the network.
|
3 | */
|
4 | export interface IHttpClient {
|
5 | /**
|
6 | * Send GET request over the network.
|
7 | * @param url Fully qualified URL.
|
8 | * @returns Promise with response body.
|
9 | */
|
10 | get(url: string): Promise<string>;
|
11 | }
|