function createShortMethods(names) {
      forEach(arguments, function(name) {
        $http[name] = function(url, config) {
          return $http(extend(config || {}, {
            method: name,
            url: url
          }));
        };
      });
    }
@ngdoc property
@name ng.$http#defaults
@propertyOf ng.$http

@description
Runtime equivalent of the `$httpProvider.defaults` property. Allows configuration of
default headers, withCredentials as well as request and response transformations.

See "Setting HTTP Headers" and "Transforming Requests and Responses" sections above.