public class IHttpProviderDefaults extends Objs
Objs.Constructor<T extends Objs>, Objs.Property<T>
Modifier and Type | Field and Description |
---|---|
Objs.Property<Object> |
cache
{boolean|Cache}
If true, a default $http cache will be used to cache the GET request, otherwise if a cache instance built with $cacheFactory, this cache will be used for caching.
|
Objs.Property<IHttpRequestConfigHeaders> |
headers
Map of strings or functions which return strings representing HTTP headers to send to the server.
|
Objs.Property<Union.A2<String,Objs>> |
paramSerializer
A function used to the prepare string representation of request parameters (specified as an object).
|
Objs.Property<Union.A2<IHttpRequestTransformer,IHttpRequestTransformer[]>> |
transformRequest
Transform function or an array of such functions.
|
Objs.Property<Union.A2<IHttpResponseTransformer,IHttpResponseTransformer[]>> |
transformResponse
Transform function or an array of such functions.
|
Objs.Property<Boolean> |
withCredentials
whether to to set the withCredentials flag on the XHR object.
|
Objs.Property<String> |
xsrfCookieName
Name of cookie containing the XSRF token.
|
Objs.Property<String> |
xsrfHeaderName
Name of HTTP header to populate with the XSRF token.
|
Modifier | Constructor and Description |
---|---|
protected |
IHttpProviderDefaults(Objs.Constructor<?> c,
Object js) |
Modifier and Type | Method and Description |
---|---|
static IHttpProviderDefaults |
$as(Object obj) |
IHttpRequestConfigHeaders |
headers() |
Boolean |
withCredentials() |
String |
xsrfCookieName() |
String |
xsrfHeaderName() |
$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<Object> cache
public Objs.Property<Union.A2<IHttpRequestTransformer,IHttpRequestTransformer[]>> transformRequest
https://docs.angularjs.org/api/ng/service/$http#transforming-requests-and-responses}
public Objs.Property<Union.A2<IHttpResponseTransformer,IHttpResponseTransformer[]>> transformResponse
public Objs.Property<IHttpRequestConfigHeaders> headers
https://docs.angularjs.org/api/ng/service/$http#setting-http-headers}
public Objs.Property<String> xsrfHeaderName
public Objs.Property<String> xsrfCookieName
public Objs.Property<Boolean> withCredentials
public Objs.Property<Union.A2<String,Objs>> paramSerializer
protected IHttpProviderDefaults(Objs.Constructor<?> c, Object js)
public static IHttpProviderDefaults $as(Object obj)
public IHttpRequestConfigHeaders headers()
public String xsrfHeaderName()
public String xsrfCookieName()
public Boolean withCredentials()
Copyright © 2018. All rights reserved.