| Age | Commit message (Collapse) | Author | 
|---|
|  | Update docs to reflect that $http no longer requires passing in an HTTP method, as changed in #6401. | 
|  | Closes #5012 | 
|  |  | 
|  | These errors in the docs were preventing some parts of the docs from being
parsed. | 
|  | Closes #6342 | 
|  | Fixes #5985
Closes #6401 | 
|  |  | 
|  |  | 
|  |  | 
|  | Really the doc-gen process should escape there but for now this should
stop the layout from breaking. | 
|  |  | 
|  |  | 
|  |  | 
|  | It is problematic to use {@link} tags with external links because the
markdown parser converts them to links for us before we parse the @links.
This means that the following tag:
```
{@link http://www.google.com Google}
```
get converted to:
```
{@link <a href="http://www.google.com/"></a> Google}
```
Our {@link} parser then converts this to:
```
<a href="<a"><</a>href="http://www.google.com/"></a> Google}
```
which is clearly a mess.  The best solution is not to use {@link} tags
for external links and just use the standard markdown syntax:
```
[Google](http://www.google.com)
```
In the long run, we could look into configuring or modifying `marked` not
to convert these external links or we could provide a "pre-parser"
processor that dealt with such links before `marked` gets its hands on it. | 
|  |  | 
|  |  | 
|  | protractor
Thanks to jeffbcross, petebacondarwin, btford, jdeboer, tbosch for contributions!
Closes #6023 | 
|  | This removes some outdated advice which no longer is true against the latest angular version.
The information about unit testing with ngMocks remains, because it's always good to have
information like that easily found. This little snippet is not worded perfectly, and is not
a very good example unit test, so additional work is needed here.
Relates to #5206
Closes #5485 | 
|  | Send PUT and POST through copy() to make sure they are not the same.
Closes #5742
Closes #5747
Closes #5764 | 
|  | Clarifies some confusion around $http.defaults existing and able to be modified
at run-time, for when run-time services may be needed in a transformation.
Closes #5559
Closes #5630 | 
|  |  | 
|  | Make the possibility to pass a custom cache instance to $http more obvious.
Closes #4803 | 
|  | Closes #4750 | 
|  | Closes #4621 | 
|  |  | 
|  | This also contains some whitespace corrections by my editor. | 
|  | The location service, and other portions of the application,
were relying on a complicated regular expression to get parts of a URL.
But there is already a private urlUtils provider,
which relies on HTMLAnchorElement to provide this information,
and is suitable for most cases.
In order to make urlUtils more accessible in the absence of DI,
its methods were converted to standalone functions available globally.
The urlUtils.resolve method was renamed urlResolve,
and was refactored to only take 1 argument, url,
and not the 2nd "parse" boolean.
The method now always returns a parsed url.
All places in code which previously wanted a string instead of a parsed
url can now get the value from the href property of the returned object.
Tests were also added to ensure IPv6 addresses were handled correctly.
Closes #3533
Closes #2950
Closes #3249 | 
|  | Closes #4186 | 
|  | Initially, `$httpProvider.defaults.headers.get` is `undefined`, so
`$httpProvider.defaults.headers.get['My-Header']='value'` will throw an
error.
Closes #4101 | 
|  | Closes #3996 | 
|  | I came across this issue today and after researching has found out this thread on so:
http://stackoverflow.com/questions/17039998/angular-not-making-http-requests-immediately.
It took me quite sometimes to figure out this so I hope the addition in documentation could save somebody else some times and frustration. | 
|  | Closes #3809 | 
|  |  | 
|  |  | 
|  |  | 
|  |  | 
|  | Closes #2770 | 
|  | So we can request with dynamic header value.
module.factory('Res', [
  '$resource'
  '$routeParams'
  'globalConfig'
function($resource, $routeParams, globalConfig) {
  resource('/url/:id', {id: "@id"}, {
    patch: {
      method: 'patch',
      headers: {
        'Authorization': function() {
          return "token " + globalConfig.token;
        }
      }
    }
  });
}]); | 
|  | If user send content-type header, both content-type and default
Content-Type headers were sent. Now default header overriding is
case-insensitive. | 
|  | If the timeout argument is a promise, abort the request when it is resolved.
Implemented by adding support to $httpBackend service and $httpBackend mock
service.
This api can also be used to explicitly abort requests while keeping the
communication between the deffered and promise unidirectional.
Closes #1159 | 
|  | The default header is now application/json which while not perfect
in all cases is better than the browser default application/xml.
The new headers also makes for better compatibility with Rails 4 | 
|  |  | 
|  | Closes #1051 | 
|  |  | 
|  |  | 
|  |  | 
|  | myApp.factory('myAroundInterceptor', function($rootScope, $timeout) {
    return function(configPromise, responsePromise) {
        return {
            request: configPromise.then(function(config) {
                return config
            });
            response: responsePromise.then(function(response) {
                return 'ha!';
            }
        });
}
myApp.config(function($httpProvider){
    $httpProvider.aroundInterceptors.push('myAroundInterceptor');
}); | 
|  | When we need more control over http caching, we may want to provide
a custom cache to be used in all http requests by default.
To skip default cache, set {cache: false} in request configuration.
To use other cache, set {cache: cache} as before.
See #2079 | 
|  |  | 
|  | encodeURIComponent is too aggressive and doesn't follow http://www.ietf.org/rfc/rfc3986.txt
with regards to the character set (pchar) allowed in path segments so we need
this test to make sure that we don't over-encode the params and break stuff
like buzz api which uses @self.
This is has already been fixed in `$resource`. This commit fixes it in a same way
for `$http` as well.
BREAKING CHANGE: $http does follow RFC3986 and does not encode special characters
like `$@,:` in params. If your application needs to encode these characters, encode
them manually, before sending the request. |