UNPKG

angular2

Version:

Angular 2 - a web framework for modern web apps

40 lines 1.93 kB
'use strict';/** * Supported http methods. */ (function (RequestMethods) { RequestMethods[RequestMethods["Get"] = 0] = "Get"; RequestMethods[RequestMethods["Post"] = 1] = "Post"; RequestMethods[RequestMethods["Put"] = 2] = "Put"; RequestMethods[RequestMethods["Delete"] = 3] = "Delete"; RequestMethods[RequestMethods["Options"] = 4] = "Options"; RequestMethods[RequestMethods["Head"] = 5] = "Head"; RequestMethods[RequestMethods["Patch"] = 6] = "Patch"; })(exports.RequestMethods || (exports.RequestMethods = {})); var RequestMethods = exports.RequestMethods; /** * All possible states in which a connection can be, based on * [States](http://www.w3.org/TR/XMLHttpRequest/#states) from the `XMLHttpRequest` spec, but with an * additional "CANCELLED" state. */ (function (ReadyStates) { ReadyStates[ReadyStates["Unsent"] = 0] = "Unsent"; ReadyStates[ReadyStates["Open"] = 1] = "Open"; ReadyStates[ReadyStates["HeadersReceived"] = 2] = "HeadersReceived"; ReadyStates[ReadyStates["Loading"] = 3] = "Loading"; ReadyStates[ReadyStates["Done"] = 4] = "Done"; ReadyStates[ReadyStates["Cancelled"] = 5] = "Cancelled"; })(exports.ReadyStates || (exports.ReadyStates = {})); var ReadyStates = exports.ReadyStates; /** * Acceptable response types to be associated with a {@link Response}, based on * [ResponseType](https://fetch.spec.whatwg.org/#responsetype) from the Fetch spec. */ (function (ResponseTypes) { ResponseTypes[ResponseTypes["Basic"] = 0] = "Basic"; ResponseTypes[ResponseTypes["Cors"] = 1] = "Cors"; ResponseTypes[ResponseTypes["Default"] = 2] = "Default"; ResponseTypes[ResponseTypes["Error"] = 3] = "Error"; ResponseTypes[ResponseTypes["Opaque"] = 4] = "Opaque"; })(exports.ResponseTypes || (exports.ResponseTypes = {})); var ResponseTypes = exports.ResponseTypes; //# sourceMappingURL=enums.js.map