This repository was archived by the owner on Apr 12, 2024. It is now read-only.
File tree 1 file changed +8
-4
lines changed
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -283,10 +283,14 @@ function $HttpProvider() {
283
283
* - if XSRF prefix is detected, strip it (see Security Considerations section below)
284
284
* - if json response is detected, deserialize it using a JSON parser
285
285
*
286
- * To override these transformation locally, specify transform functions as `transformRequest`
287
- * and/or `transformResponse` properties of the config object. To globally override the default
288
- * transforms, override the `$httpProvider.defaults.transformRequest` and
289
- * `$httpProvider.defaults.transformResponse` properties of the `$httpProvider`.
286
+ * To globally augment or override the default transforms, modify the `$httpProvider.defaults.transformRequest` and
287
+ * `$httpProvider.defaults.transformResponse` properties of the `$httpProvider`. These properties are by default an
288
+ * array of transform functions, which allows you to `push` or `unshift` a new transformation function into the
289
+ * transformation chain. You can also decide to completely override any default transformations by assigning your
290
+ * transformation functions to these properties directly without the array wrapper.
291
+ *
292
+ * Similarly, to locally override the request/response transforms, augment the `transformRequest` and/or
293
+ * `transformResponse` properties of the config object passed into `$http`.
290
294
*
291
295
*
292
296
* # Caching
You can’t perform that action at this time.
0 commit comments