public class IHttpProvider extends IServiceProvider
Objs.Constructor<T extends Objs>, Objs.Property<T>
Modifier and Type | Field and Description |
---|---|
Objs.Property<IHttpProviderDefaults> |
defaults |
Objs.Property<Objs[]> |
interceptors
Register service factories (names or implementations) for interceptors which are called before and after
each request.
|
$get
Modifier | Constructor and Description |
---|---|
protected |
IHttpProvider(Objs.Constructor<?> c,
Object js) |
Modifier and Type | Method and Description |
---|---|
static IHttpProvider |
$as(Object obj) |
IHttpProviderDefaults |
defaults() |
Objs[] |
interceptors() |
Boolean |
useApplyAsync() |
IHttpProvider |
useApplyAsync(Boolean value) |
Union.A2<Boolean,IHttpProvider> |
useLegacyPromiseExtensions(Boolean value) |
$as, $cast, $delete, $get, $js, $set, create, create, defineProperties, defineProperty, freeze, getOwnPropertyDescriptor, getOwnPropertyNames, getPrototypeOf, hasOwnProperty, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, newObject, newObject, preventExtensions, propertyIsEnumerable, seal, toLocaleString, toString, valueOf
public Objs.Property<IHttpProviderDefaults> defaults
public Objs.Property<Objs[]> interceptors
protected IHttpProvider(Objs.Constructor<?> c, Object js)
public static IHttpProvider $as(Object obj)
public IHttpProviderDefaults defaults()
public Objs[] interceptors()
public Boolean useApplyAsync()
public IHttpProvider useApplyAsync(Boolean value)
public Union.A2<Boolean,IHttpProvider> useLegacyPromiseExtensions(Boolean value)
{boolean=}
- value If true, `$http` will return a normal promise without the `success` and `error` methods.Copyright © 2018. All rights reserved.