mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-10 07:44:43 +00:00
docs($http): add more info about transform function
This commit is contained in:
parent
7a77fdae4f
commit
1516a69cd2
1 changed files with 8 additions and 4 deletions
|
|
@ -245,10 +245,14 @@ function $HttpProvider() {
|
||||||
* - if XSRF prefix is detected, strip it (see Security Considerations section below)
|
* - if XSRF prefix is detected, strip it (see Security Considerations section below)
|
||||||
* - if json response is detected, deserialize it using a JSON parser
|
* - if json response is detected, deserialize it using a JSON parser
|
||||||
*
|
*
|
||||||
* To override these transformation locally, specify transform functions as `transformRequest`
|
* To globally augment or override the default transforms, modify the `$httpProvider.defaults.transformRequest` and
|
||||||
* and/or `transformResponse` properties of the config object. To globally override the default
|
* `$httpProvider.defaults.transformResponse` properties of the `$httpProvider`. These properties are by default an
|
||||||
* transforms, override the `$httpProvider.defaults.transformRequest` and
|
* array of transform functions, which allows you to `push` or `unshift` a new transformation function into the
|
||||||
* `$httpProvider.defaults.transformResponse` properties of the `$httpProvider`.
|
* transformation chain. You can also decide to completely override any default transformations by assigning your
|
||||||
|
* transformation functions to these properties directly without the array wrapper.
|
||||||
|
*
|
||||||
|
* Similarly, to locally override the request/response transforms, augment the `transformRequest` and/or
|
||||||
|
* `transformResponse` properties of the config object passed into `$http`.
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* # Caching
|
* # Caching
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue