Skip to content

Commit d8b4f76

Browse files
committed
Add comments to error handling.
1 parent bde674f commit d8b4f76

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/api.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,10 @@ class DICOMwebClient {
7171
this.stowURL = this.baseURL;
7272
}
7373

74+
// Headers to pass to requests.
7475
this.headers = options.headers || {};
76+
77+
// Optional error interceptor callback to handle any failed request.
7578
this.errorInterceptor = options.errorInterceptor || function() {};
7679
}
7780

0 commit comments

Comments
 (0)