aboutsummaryrefslogtreecommitdiffstats
path: root/src/ng/http.js
AgeCommit message (Collapse)Author
2014-03-17docs($http): update shortcut method descriptionlinclark
Update docs to reflect that $http no longer requires passing in an HTTP method, as changed in #6401.
2014-03-15fix($http): allow sending Blob data using $httpBruno Baia
Closes #5012
2014-03-02docs(*): ensure jsdoc type expressions are validPeter Bacon Darwin
2014-02-26docs(*): fix jsdoc type expressionsPeter Bacon Darwin
These errors in the docs were preventing some parts of the docs from being parsed.
2014-02-21fix($http): do not add trailing questionBoris Serdyuk
Closes #6342
2014-02-21fix($http): send GET requests by defaultPawel Kozlowski
Fixes #5985 Closes #6401
2014-02-21docs(*): fix anchors for members in api docsPeter Bacon Darwin
2014-02-18style: remove ws and enfore no-trailing-ws jscs ruleIgor Minar
2014-02-16docs(*): fix jshint issues in examplesPeter Bacon Darwin
2014-02-16docs(api): escape params that have <object> in their typePeter Bacon Darwin
Really the doc-gen process should escape there but for now this should stop the layout from breaking.
2014-02-16docs(content): fix bad linksPeter Bacon Darwin
2014-02-16chore(protractor tests): fix up e2e testsJulie
2014-02-16docs(bike-shed-migration): fix url-based links refs to AUTO modulePeter Bacon Darwin
2014-02-16docs(bike-shed-migration): let markdown deal with extenal linksPeter Bacon Darwin
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">&lt;</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.
2014-02-16docs(all): convert <pre>/</pre> snippets to GFM snippetsCaitlin Potter
2014-02-16docs(bike-shed-migration): convert doctype and namesPeter Bacon Darwin
2014-01-28test(docs): convert example end to end doc tests from scenario runner to ↵Julie
protractor Thanks to jeffbcross, petebacondarwin, btford, jdeboer, tbosch for contributions! Closes #6023
2014-01-18docs($http): remove outdated part about $http outside of $apply phaseChristoph Burgdorf
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
2014-01-13fix($http): ensure default headers PUT and POST are different objectsHendrixer
Send PUT and POST through copy() to make sure they are not the same. Closes #5742 Closes #5747 Closes #5764
2014-01-03docs($http): makes clear $httpProvider.defaults are available at run-timeMikeMac
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
2013-12-20style($http): fix a semi-colonsanfords
2013-11-13docs($http): improve $http's caching documentationJulien Sanchez
Make the possibility to pass a custom cache instance to $http more obvious. Closes #4803
2013-11-04docs($http): note that default $http headers can be overriddenDmitry Kichenko
Closes #4750
2013-10-26docs(http): add missing brace in the 2nd interceptors examplemgechev
Closes #4621
2013-10-22style: make jshint happyVojta Jina
2013-10-18docs: correct broken linksVojta Jina
This also contains some whitespace corrections by my editor.
2013-10-10refactor(location): $location now uses urlUtils, not RegExJeff Cross
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
2013-09-30docs($http): update grammar in commentsMartin Cortez
Closes #4186
2013-09-25docs($http): fix adding default header to get request exampleMr.Raindrop
Initially, `$httpProvider.defaults.headers.get` is `undefined`, so `$httpProvider.defaults.headers.get['My-Header']='value'` will throw an error. Closes #4101
2013-09-13docs($http): add examples when calling $http outside $applyPete Bacon Darwin
Closes #3996
2013-09-13docs($http): explain why $http may not make the request immediatelyDang Nguyen Anh Khoa
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.
2013-09-02fix($http): allow empty responses to be cachedjankuca
Closes #3809
2013-08-27style($http): remove unused argumentIgor Minar
2013-08-14docs($http): added return to interceptors success callbackMikk Kirstein
2013-07-27docs(*): fixed typos and ngdoc parameter namesCarl Danley
2013-07-19fix(core): parse URLs using the browser's DOM APIChirayu Krishnappa
2013-07-12fix($http): allow interceptors to completely override headersIgor Minar
Closes #2770
2013-07-08feat($http): accept function as headers valuebolasblack
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; } } } }); }]);
2013-06-19fix($http): ensure case-insens. header overridingCaio Cunha
If user send content-type header, both content-type and default Content-Type headers were sent. Now default header overriding is case-insensitive.
2013-05-20feat($http): add support for aborting via timeout promisesDavid Bennett
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
2013-05-16feat($http): add a default content type for PATH requestsDaniel Stockton
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
2013-05-09style(*): fix up semicolon and var usageAnatoly Shikolay
2013-04-15fix($location): fix URL interception in hash-bang modeMisko Hevery
Closes #1051
2013-04-11docs(http): spelling, grammar, capitalization, etc.Artur Ostrega
2013-04-11docs($http): fix a typoChad Whitacre
2013-03-29docs(*): fixed typosPascal Borreli
2013-03-27feat(http): support request/response promise chainingSylvester Keil
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'); });
2013-03-08feat(http): set custom default cache in $http.defaults.cacheAlexander Shtuchkin
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
2013-03-06docs($http): add more info about transform functionIgor Minar
2013-02-14fix($http): do not encode special characters `@$:,` in paramsVojta Jina
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.