mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-28 04:00:23 +00:00
docs($http): note that default $http headers can be overridden
Closes #4750
This commit is contained in:
parent
159a63f538
commit
8cfaeb0e82
1 changed files with 3 additions and 2 deletions
|
|
@ -290,8 +290,9 @@ function $HttpProvider() {
|
|||
* with the lowercased HTTP method name as the key, e.g.
|
||||
* `$httpProvider.defaults.headers.get = { 'My-Header' : 'value' }.
|
||||
*
|
||||
* Additionally, the defaults can be set at runtime via the `$http.defaults` object in the same
|
||||
* fashion.
|
||||
* The defaults can also be set at runtime via the `$http.defaults` object in the same
|
||||
* fashion. In addition, you can supply a `headers` property in the config object passed when
|
||||
* calling `$http(config)`, which overrides the defaults without changing them globally.
|
||||
*
|
||||
*
|
||||
* # Transforming Requests and Responses
|
||||
|
|
|
|||
Loading…
Reference in a new issue