core.medplumclient.downloadresponse | Medplum
MedplumClient.downloadResponse() method
Downloads the URL as a Response. Can accept binary URLs in the form of Binary/{id} as well.
Signature:
downloadResponse(url: URL | string, options?: MedplumRequestOptions): Promise<Response>;
Parameters
| Parameter | Type | Description |
|---|---|---|
| url | URL string | The URL to request. Can be a standard URL or one in the form of Binary/{id}. |
| options | MedplumRequestOptions | (Optional) Optional fetch request init options. |
Returns:
Promise
Promise to the response body as a Response.