48 lines
508 B
TypeScript
Raw Normal View History

export enum RequestModesOpts {
Cors,
NoCors,
SameOrigin
}
export enum RequestCacheOpts {
Default,
NoStore,
Reload,
NoCache,
ForceCache,
OnlyIfCached
}
export enum RequestCredentialsOpts {
Omit,
SameOrigin,
Include
}
export enum RequestMethods {
GET,
POST,
PUT,
DELETE,
OPTIONS,
HEAD,
PATCH
}
export enum ReadyStates {
UNSENT,
OPEN,
HEADERS_RECEIVED,
LOADING,
DONE,
CANCELLED
}
export enum ResponseTypes {
Basic,
Cors,
Default,
Error,
Opaque
}