Define patch() on $http

This commit is contained in:
André Werlang
2015-03-11 08:43:49 -03:00
parent 3b2ed809b9
commit 13d8727de0

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.
*/