Skip to content

Commit 7d074a3

Browse files
committed
docs($http): fix return types
1 parent dceafd3 commit 7d074a3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ng/http.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ function $HttpProvider() {
560560
*
561561
* @param {string} url Relative or absolute URL specifying the destination of the request
562562
* @param {Object=} config Optional configuration object
563-
* @returns {XhrFuture} Future object
563+
* @returns {HttpPromise} Future object
564564
*/
565565

566566
/**
@@ -574,7 +574,7 @@ function $HttpProvider() {
574574
* @param {string} url Relative or absolute URL specifying the destination of the request.
575575
* Should contain `JSON_CALLBACK` string.
576576
* @param {Object=} config Optional configuration object
577-
* @returns {XhrFuture} Future object
577+
* @returns {HttpPromise} Future object
578578
*/
579579
createShortMethods('get', 'delete', 'head', 'jsonp');
580580

@@ -603,7 +603,7 @@ function $HttpProvider() {
603603
* @param {string} url Relative or absolute URL specifying the destination of the request
604604
* @param {*} data Request content
605605
* @param {Object=} config Optional configuration object
606-
* @returns {XhrFuture} Future object
606+
* @returns {HttpPromise} Future object
607607
*/
608608
createShortMethodsWithData('post', 'put');
609609

0 commit comments

Comments
 (0)