diff --git a/server/connector/http-connector.ts b/server/connector/http-connector.ts index 177b241..c4acc37 100644 --- a/server/connector/http-connector.ts +++ b/server/connector/http-connector.ts @@ -2,12 +2,21 @@ * We use custom response class to allow for easy testing. */ export interface HttpResponse { + + /** + * HTTP status code. + */ status: number; json: () => Promise; } export interface HttpConnector { + + /** + * Fetch and return content from given URL. + * @param url + */ fetch(url: string): Promise; }