function createShortMethodsWithData(name) {
      forEach(arguments, function(name) {
        $http[name] = function(url, data, config) {
          return $http(extend(config || {}, {
            method: name,
            url: url,
            data: data
          }));
        };
      });
    }
@ngdoc method
@name angular.module.ng.$http#put
@methodOf angular.module.ng.$http

@description
Shortcut method to perform `PUT` request

@param {string} url Relative or absolute URL specifying the destination of the request
@param {*} data Request content
@param {Object=} config Optional configuration object
@returns {XhrFuture} Future object