Package org.angular.ts.ng
Interface HttpRequestOptions
@JsType(isNative=true,
name="ng.HttpRequestOptions",
namespace="<global>")
public interface HttpRequestOptions
Request options shared by the `$http` shortcut methods. See http://docs.angularjs.org/api/ng/service/$http#usage
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic HttpRequestOptionscreate()getCache()Cache used for cacheable requests.getData()Request body.jsinterop.base.JsPropertyMap<Object> Default headers merged into each request.jsinterop.base.JsPropertyMap<Object> Query parameters appended to the request URL.Query parameter serializer token or function.Native fetch response body reader hint.Millisecond timeout, or a promise whose resolution aborts the request.Request body transform pipeline.Response body transform pipeline.Cookie name used when reading the XSRF token.Header name used when sending the XSRF token.booleanWhether cross-site requests should include credentials by default.voidCache used for cacheable requests.voidRequest body.voidsetHeaders(jsinterop.base.JsPropertyMap<Object> headers) Default headers merged into each request.voidQuery parameters appended to the request URL.voidsetParamSerializer(Object paramSerializer) Query parameter serializer token or function.voidsetResponseType(String responseType) Native fetch response body reader hint.default voidsetTimeout(double timeout) default voidsetTimeout(elemental2.promise.Promise<Object> timeout) voidMillisecond timeout, or a promise whose resolution aborts the request.voidsetTransformRequest(Object transformRequest) Request body transform pipeline.voidsetTransformResponse(Object transformResponse) Response body transform pipeline.voidsetWithCredentials(boolean withCredentials) Whether cross-site requests should include credentials by default.voidsetXsrfCookieName(String xsrfCookieName) Cookie name used when reading the XSRF token.voidsetXsrfHeaderName(String xsrfHeaderName) Header name used when sending the XSRF token.
-
Method Details
-
create
-
getCache
Cache used for cacheable requests. `true` enables the default cache. -
getData
Request body. Shorthand methods with explicit data set this automatically. -
getHeaders
Default headers merged into each request. -
getParamSerializer
Query parameter serializer token or function. -
getParams
Query parameters appended to the request URL. -
getResponseType
Native fetch response body reader hint. -
getTimeout
Millisecond timeout, or a promise whose resolution aborts the request. -
getTransformRequest
Request body transform pipeline. -
getTransformResponse
Response body transform pipeline. -
getXsrfCookieName
Cookie name used when reading the XSRF token. -
getXsrfHeaderName
Header name used when sending the XSRF token. -
isWithCredentials
@JsProperty boolean isWithCredentials()Whether cross-site requests should include credentials by default. -
setCache
Cache used for cacheable requests. `true` enables the default cache. -
setData
Request body. Shorthand methods with explicit data set this automatically. -
setHeaders
Default headers merged into each request. -
setParamSerializer
Query parameter serializer token or function. -
setParams
Query parameters appended to the request URL. -
setResponseType
Native fetch response body reader hint. -
setTimeout
Millisecond timeout, or a promise whose resolution aborts the request. -
setTimeout
-
setTimeout
@JsOverlay default void setTimeout(double timeout) -
setTransformRequest
Request body transform pipeline. -
setTransformResponse
Response body transform pipeline. -
setWithCredentials
@JsProperty void setWithCredentials(boolean withCredentials) Whether cross-site requests should include credentials by default. -
setXsrfCookieName
Cookie name used when reading the XSRF token. -
setXsrfHeaderName
Header name used when sending the XSRF token.
-