This repository was archived by the owner on Apr 12, 2024. It is now read-only.
File tree 1 file changed +6
-0
lines changed
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -136,10 +136,16 @@ function shallowClearAndCopy(src, dst) {
136
136
* `{function(data, headersGetter)|Array.<function(data, headersGetter)>}` –
137
137
* transform function or an array of such functions. The transform function takes the http
138
138
* request body and headers and returns its transformed (typically serialized) version.
139
+ * By default, transformRequest will contain one function that checks if the request data is
140
+ * an object and serializes to using `angular.toJson`. To prevent this behavior, set
141
+ * `transformRequest` to an empty array: `transformRequest: []`
139
142
* - **`transformResponse`** –
140
143
* `{function(data, headersGetter)|Array.<function(data, headersGetter)>}` –
141
144
* transform function or an array of such functions. The transform function takes the http
142
145
* response body and headers and returns its transformed (typically deserialized) version.
146
+ * By default, transformResponse will contain one function that checks if the response looks like
147
+ * a JSON string and deserializes it using `angular.fromJson`. To prevent this behavior, set
148
+ * `transformResponse` to an empty array: `transformResponse: []`
143
149
* - **`cache`** – `{boolean|Cache}` – If true, a default $http cache will be used to cache the
144
150
* GET request, otherwise if a cache instance built with
145
151
* {@link ng.$cacheFactory $cacheFactory}, this cache will be used for
You can’t perform that action at this time.
0 commit comments