File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -245,10 +245,14 @@ function $HttpProvider() {
245245 * - if XSRF prefix is detected, strip it (see Security Considerations section below)
246246 * - if json response is detected, deserialize it using a JSON parser
247247 *
248- * To override these transformation locally, specify transform functions as `transformRequest`
249- * and/or `transformResponse` properties of the config object. To globally override the default
250- * transforms, override the `$httpProvider.defaults.transformRequest` and
251- * `$httpProvider.defaults.transformResponse` properties of the `$httpProvider`.
248+ * To globally augment or override the default transforms, modify the `$httpProvider.defaults.transformRequest` and
249+ * `$httpProvider.defaults.transformResponse` properties of the `$httpProvider`. These properties are by default an
250+ * array of transform functions, which allows you to `push` or `unshift` a new transformation function into the
251+ * transformation chain. You can also decide to completely override any default transformations by assigning your
252+ * transformation functions to these properties directly without the array wrapper.
253+ *
254+ * Similarly, to locally override the request/response transforms, augment the `transformRequest` and/or
255+ * `transformResponse` properties of the config object passed into `$http`.
252256 *
253257 *
254258 * # Caching
You can’t perform that action at this time.
0 commit comments