- Source: src/loader/typedefs/index.js (Line 7)
Namespaces
Type Definitions
-
FileConfig
-
Type:
- object
- Since: 3.0.0
- Source: src/loader/typedefs/FileConfig.js (Line 1)
Properties:
Name Type Argument Default Description typestring The file type string (image, json, etc) for sorting within the Loader.
keystring Unique cache key (unique within its file type)
urlstring <optional>
The URL of the file, not including baseURL.
pathstring <optional>
The path of the file, not including the baseURL.
extensionstring <optional>
The default extension this file uses.
responseTypeXMLHttpRequestResponseType <optional>
The responseType to be used by the XHR request.
xhrSettingsPhaser.Types.Loader.XHRSettingsObject | false <optional>
false Custom XHR Settings specific to this file and merged with the Loader defaults.
configany <optional>
A config object that can be used by file types to store transitional data.
-
XHRSettingsObject
-
Type:
- object
- Since: 3.0.0
- Source: src/loader/typedefs/XHRSettingsObject.js (Line 1)
Properties:
Name Type Argument Default Description responseTypeXMLHttpRequestResponseType The response type of the XHR request, i.e.
blob,text, etc.asyncboolean <optional>
true Should the XHR request use async or not?
userstring <optional>
'' Optional username for the XHR request.
passwordstring <optional>
'' Optional password for the XHR request.
timeoutnumber <optional>
0 Optional XHR timeout value.
headersobject | undefined <optional>
This value is used to populate the XHR
setRequestHeaderand is undefined by default.headerstring | undefined <optional>
This value is used to populate the XHR
setRequestHeaderand is undefined by default.headerValuestring | undefined <optional>
This value is used to populate the XHR
setRequestHeaderand is undefined by default.requestedWithstring | undefined <optional>
This value is used to populate the XHR
setRequestHeaderand is undefined by default.overrideMimeTypestring | undefined <optional>
Provide a custom mime-type to use instead of the default.
withCredentialsboolean <optional>
false The withCredentials property indicates whether or not cross-site Access-Control requests should be made using credentials such as cookies, authorization headers or TLS client certificates. Setting withCredentials has no effect on same-site requests.
