Skip to main content

core.medplumclient.startasyncrequest

Home > @medplum/core > MedplumClient > startAsyncRequest

MedplumClient.startAsyncRequest() method

Starts an async request following the FHIR "Asynchronous Request Pattern". See: https://hl7.org/fhir/r4/async.html

Signature:

startAsyncRequest<T>(url: string, options?: RequestInit): Promise<T>;

Parameters

ParameterTypeDescription
urlstringThe URL to request.
optionsRequestInit(Optional) Optional fetch options.

Returns:

Promise<T>

The response body.