overrideMimeType method
@AvailableInWorkers("window_and_worker_except_service")
The XMLHttpRequest method
overrideMimeType()
specifies a MIME type other than the
one provided by the server to be used instead when interpreting the data
being
transferred in a request.
This may be used, for example, to force a stream to
be treated and parsed as "text/xml"
, even if the server does not report
it
as such. This method must be called before calling XMLHttpRequest.send.
Implementation
external void overrideMimeType(String mime);