Package org.angular.ts.ng
Interface HttpRequestConfig
@JsType(isNative=true,
name="ng.HttpRequestConfig",
namespace="<global>")
public interface HttpRequestConfig
Full request configuration accepted by `$http(...)`. See http://docs.angularjs.org/api/ng/service/$http#usage
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic HttpRequestConfigcreate()getCache()Cache used for cacheable requests.getData()Request body.jsinterop.base.JsPropertyMap<Object> Event handlers notified by the underlying transport.jsinterop.base.JsPropertyMap<Object> Default headers merged into each request.HTTP verb to use for the 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.jsinterop.base.JsPropertyMap<Object> Upload event handlers.getUrl()Request URL.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.voidsetEventHandlers(jsinterop.base.JsPropertyMap<Object> eventHandlers) Event handlers notified by the underlying transport.voidsetHeaders(jsinterop.base.JsPropertyMap<Object> headers) Default headers merged into each request.voidHTTP verb to use for the 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.voidsetUploadEventHandlers(jsinterop.base.JsPropertyMap<Object> uploadEventHandlers) Upload event handlers.voidRequest URL.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. -
getEventHandlers
Event handlers notified by the underlying transport. -
getHeaders
Default headers merged into each request. -
getMethod
HTTP verb to use for the 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. -
getUploadEventHandlers
Upload event handlers. Not used by the fetch transport. -
getUrl
Request URL. Query parameters from `params` are appended to this URL. -
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. -
setEventHandlers
Event handlers notified by the underlying transport. -
setHeaders
Default headers merged into each request. -
setMethod
HTTP verb to use for the 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. -
setUploadEventHandlers
Upload event handlers. Not used by the fetch transport. -
setUrl
Request URL. Query parameters from `params` are appended to this URL. -
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.
-