Optional
contentif content length is known this will avoid needing to detect it
Optional
contentspecify content type of video
Optional
defaultDefault content type to use if cannot be determined from input blob/filename
Optional
disableBlock any loads of external resources (file paths/network fetch). If true then you must explicitly pass in Flie/Blob or ReadableStreams
Optional
filenamespecify filename of video as reported to Rev
Optional
responsespecify body type when decoding. Use 'stream' to skip parsing body completely
Options are:
undefined
(default): autodetect - object if json response (most common), text if text response type, otherwise a ReadableStream'json'
: return a json object (most common type of response)'text'
: return as string
'blob'
: return as a Blob
'stream'
: return the response.body
as-is with no processing (may be NodeJS Readable if using node-fetch
polyfill)'webstream'
: return response.body
as a ReadableStream
'nativestream'
: return response.body
as a NodeJS Readable stream if using node
, otherwise ReadableStream
Optional
throwwhether to throw errors or not for HTTP error response codes.
Optional
usenode-only - bypass dealing with content length and just upload as transfer-encoding: chunked
Allows customizing the fetch RequestInit options, as well as setting the type of response