If set, it defines which media-types the client is able to understand depending on the context where the request is done. If the ResourceProvider has multiple resources available for the URL, it should return a resource compatible with any of the provided values.
If not defined or an empty array, any media-type is accepted.
ResourceProvider implementations may ignore this option if it does not know about media-types. ResourceProvider implementations may also ignore this option if it does not implement any fallback mechanism.
This option is compatible with the HTTP Accept header. See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept
If set, it defines the byte range to fetch from the resource body. If the resource cannot be fetched using byte ranges, the Promise returned by fetch() will be rejected.
Note that this option differs from the HTTP Range header in how the end offset is defined. The range is up-to but not including the end offset. Thus reading the range 0-100 would return 100 bytes.
Generated using TypeDoc
Options object used with IResourceProvider.fetch() and IResourceProvider.fetchMetadata().