net.java.html.lib.angular.IHttpProviderDefaults Maven / Gradle / Ivy
package net.java.html.lib.angular;
public class IHttpProviderDefaults extends net.java.html.lib.Objs {
protected IHttpProviderDefaults(net.java.html.lib.Objs.Constructor> c, java.lang.Object js) {
super(c, js);
}
private static final class $Constructor extends net.java.html.lib.Objs.Constructor {
$Constructor() {
super(IHttpProviderDefaults.class);
}
@Override
public IHttpProviderDefaults create(java.lang.Object obj) {
return obj == null ? null : new IHttpProviderDefaults(this, obj);
}
};
private static final $Constructor $AS = new $Constructor();
public static IHttpProviderDefaults $as(java.lang.Object obj) {
return $AS.create(obj);
}
/**
* {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.
*/
public net.java.html.lib.Objs.Property cache = net.java.html.lib.Objs.Property.create(this, java.lang.Object.class, "cache");
/**
* Transform function or an array of such functions. The transform function takes the http request body and
* headers and returns its transformed (typically serialized) version.
* @see {@link https://docs.angularjs.org/api/ng/service/$http#transforming-requests-and-responses}
*/
public net.java.html.lib.Objs.Property> transformRequest = net.java.html.lib.Objs.Property.create(this, net.java.html.lib.Union.A2.class, "transformRequest");
/**
* Transform function or an array of such functions. The transform function takes the http response body and
* headers and returns its transformed (typically deserialized) version.
*/
public net.java.html.lib.Objs.Property> transformResponse = net.java.html.lib.Objs.Property.create(this, net.java.html.lib.Union.A2.class, "transformResponse");
/**
* Map of strings or functions which return strings representing HTTP headers to send to the server. If the
* return value of a function is null, the header will not be sent.
* The key of the map is the request verb in lower case. The "common" key applies to all requests.
* @see {@link https://docs.angularjs.org/api/ng/service/$http#setting-http-headers}
*/
public net.java.html.lib.Objs.Property headers = net.java.html.lib.Objs.Property.create(this, net.java.html.lib.angular.IHttpRequestConfigHeaders.class, "headers");
public IHttpRequestConfigHeaders headers() { return headers.get(); }
/** Name of HTTP header to populate with the XSRF token. */
public net.java.html.lib.Objs.Property xsrfHeaderName = net.java.html.lib.Objs.Property.create(this, java.lang.String.class, "xsrfHeaderName");
public java.lang.String xsrfHeaderName() { return xsrfHeaderName.get(); }
/** Name of cookie containing the XSRF token. */
public net.java.html.lib.Objs.Property xsrfCookieName = net.java.html.lib.Objs.Property.create(this, java.lang.String.class, "xsrfCookieName");
public java.lang.String xsrfCookieName() { return xsrfCookieName.get(); }
/**
* whether to to set the withCredentials flag on the XHR object. See [requests with credentials]https://developer.mozilla.org/en/http_access_control#section_5 for more information.
*/
public net.java.html.lib.Objs.Property withCredentials = net.java.html.lib.Objs.Property.create(this, java.lang.Boolean.class, "withCredentials");
public java.lang.Boolean withCredentials() { return withCredentials.get(); }
/**
* A function used to the prepare string representation of request parameters (specified as an object). If
* specified as string, it is interpreted as a function registered with the $injector. Defaults to
* $httpParamSerializer.
*/
public net.java.html.lib.Objs.Property> paramSerializer = net.java.html.lib.Objs.Property.create(this, net.java.html.lib.Union.A2.class, "paramSerializer");
}