Optionalcache
Cache used for cacheable requests. true enables
the default cache.
Optionalheaders
Default headers merged into each request.
OptionalparamQuery parameter serializer token or function.
OptionaltransformRequest body transform pipeline.
OptionaltransformResponse body transform pipeline.
OptionalwithWhether cross-site requests should include credentials by default.
OptionalxsrfCookie name used when reading the XSRF token.
OptionalxsrfHeader name used when sending the XSRF token.
Default request settings configured through
app.config({ $http })and exposed at runtime through$http.defaults.Not every
HttpRequestOptionsfield is supported here; this shape only includes the fields that the runtime reads from provider-level defaults.https://docs.angularjs.org/api/ng/service/$http#defaults https://docs.angularjs.org/api/ng/service/$http#usage