Readonly
extensionsMapping of media type extensions.
Readonly
formFields in the form data that should be JSON-encoded.
Readonly
sourceParameters that can contain media data.
Attaches media to the form data.
The form to which the media should be attached.
The media to attach, can be a string path, buffer, or read stream.
The name of the form field.
Attaches a value to the form data.
The form to which the value should be attached.
The name of the form field.
The value to attach to the form.
The agent to use for fetching external resources.
Builds the configuration for a form-data request.
The data to be sent in the request.
Optional
requestOptions: RequestInitAdditional options for the request.
The configuration for the request.
Builds the configuration for a JSON request.
The data to be sent in the request.
Optional
requestOptions: RequestInitAdditional options for the request.
The configuration for the request.
Checks if the given value is a media-related object. This function determines if the provided value is an object associated with media data types such as Buffer, ArrayBuffer, Blob, FormData, Uint8Array, or DataView.
The value to check.
true
if the value is a media-related object; otherwise, false
.
A class for handling media data and preparing configuration for API requests.