Create a new Component instance
The headers of the component
Optional
body: null | ArrayBuffer | ArrayLike<number>The body of the component. Defaults to empty if null or undefined.
Static
blobCreate a Component from a Blob. If blob media type is available,
it will be set in the Content-Type
header. The blob's contents will be used as the part's body.
This method might be slow if a large file is provided as the blob contents need to be read.
Blob to create the component from
Static
fileCreate a Component from a File. If file media type is available,
it will be set in the Content-Type
header. The file's contents will be used as the part's body.
This method might be slow if a large file is provided as the file contents need to be read.
File instance to create the component from
Use Component.blob.
Static
parseCreate a Component instance from a byte representation that includes the headers (if any) and body.
Component byte representation to parse
A part component (of a multipart).