Merge pull request #3842 from awerlang/master

Define patch() on $http
This commit is contained in:
Masahiro Wakame
2015-03-12 01:05:54 +09:00
+9
View File
@@ -1152,6 +1152,15 @@ declare module ng {
*/
put<T>(url: string, data: any, config?: IRequestShortcutConfig): IHttpPromise<T>;
/**
* Shortcut method to perform PATCH request.
*
* @param url Relative or absolute URL specifying the destination of the request
* @param data Request content
* @param config Optional configuration object
*/
patch<T>(url: string, data: any, config?: IRequestShortcutConfig): IHttpPromise<T>;
/**
* Runtime equivalent of the $httpProvider.defaults property. Allows configuration of default headers, withCredentials as well as request and response transformations.
*/