2015-06-19 10:18:44 -07:00
|
|
|
export enum RequestModesOpts {
|
|
|
|
Cors,
|
|
|
|
NoCors,
|
|
|
|
SameOrigin
|
|
|
|
}
|
2015-04-28 23:07:55 -07:00
|
|
|
|
2015-06-19 10:18:44 -07:00
|
|
|
export enum RequestCacheOpts {
|
|
|
|
Default,
|
|
|
|
NoStore,
|
|
|
|
Reload,
|
|
|
|
NoCache,
|
|
|
|
ForceCache,
|
|
|
|
OnlyIfCached
|
|
|
|
}
|
2015-04-28 23:07:55 -07:00
|
|
|
|
2015-06-19 10:18:44 -07:00
|
|
|
export enum RequestCredentialsOpts {
|
|
|
|
Omit,
|
|
|
|
SameOrigin,
|
|
|
|
Include
|
|
|
|
}
|
2015-04-28 23:07:55 -07:00
|
|
|
|
2015-06-19 10:18:44 -07:00
|
|
|
export enum RequestMethods {
|
|
|
|
GET,
|
|
|
|
POST,
|
|
|
|
PUT,
|
|
|
|
DELETE,
|
|
|
|
OPTIONS,
|
|
|
|
HEAD,
|
|
|
|
PATCH
|
|
|
|
}
|
2015-04-28 23:07:55 -07:00
|
|
|
|
2015-06-19 10:18:44 -07:00
|
|
|
export enum ReadyStates {
|
|
|
|
UNSENT,
|
|
|
|
OPEN,
|
|
|
|
HEADERS_RECEIVED,
|
|
|
|
LOADING,
|
|
|
|
DONE,
|
|
|
|
CANCELLED
|
|
|
|
}
|
2015-04-28 23:07:55 -07:00
|
|
|
|
2015-06-19 10:18:44 -07:00
|
|
|
export enum ResponseTypes {
|
|
|
|
Basic,
|
|
|
|
Cors,
|
|
|
|
Default,
|
|
|
|
Error,
|
|
|
|
Opaque
|
|
|
|
}
|