core.medplumrequestoptions | Medplum
MedplumRequestOptions interface
Signature:
export interface MedplumRequestOptions extends RequestInit
Extends: RequestInit
Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
| disableAutoBatch? | boolean | (Optional) Optional flag to disable auto-batching for this specific request. Only applies when the client is configured with auto-batching enabled. | |
| duplex? | 'half' | (Optional) See: https://developer.mozilla.org/en-US/docs/Web/API/Request/duplex | |
| followRedirectOnCreated? | boolean | (Optional) Optional flag to follow "Location" or "Content-Location" URL on successful HTTP 201 "Created" responses. | |
| followRedirectOnOk? | boolean | (Optional) Optional flag to follow "Location" or "Content-Location" URL on successful HTTP 200 "OK" responses. | |
| maxRetries? | number | (Optional) Optional max number of retries that should be made in the case of a failed request. Default is 2. |
|
| maxRetryTime? | number | (Optional) Optional maximum time to wait between retries, in milliseconds; defaults to 2000 (2 s). |
|
| pollStatusOnAccepted? | boolean | (Optional) Optional flag to poll the status URL on successful HTTP 202 "Accepted" responses. | |
| pollStatusPeriod? | number | (Optional) Optional polling time interval in milliseconds. Default value is 1000 (1 second). |