/* Simple HTTP Service for Vue.js
 * By Rexon A. De los Reyes
 * MIT Licensed.
 */
var vHttp = (function () {

    var _url = '',
        _methods = 'POST',
        _data = {},
        _successCallback = function () {},
        _errorCallback = function () {},
        _options = {};

    function _get () {
         Vue.http.get(_url, _oData, _options).then(_successCallback, _errorCallback);
    }

    function _post () {
         Vue.http.post(_url, _oData, _options).then(_successCallback, _errorCallback);
    }

    function _put () {
         Vue.http.put(_url, _oData, _options).then(_successCallback, _errorCallback);
    }

    function _patch () {
         Vue.http.patch(_url, _oData, _options).then(_successCallback, _errorCallback);
    }

    function _delete () {
         Vue.http.delete(_url, _oData, _options).then(_successCallback, _errorCallback);
    }

    function _jsonp () {
         Vue.http.jsonp(_url, _oData, _options).then(_successCallback, _errorCallback);
    }

    function _send (url, methods, data, sCb, eCb, opts) {

            _url = url;
            _methods = methods;
            _oData = JSON.stringify(data);
            _successCallback = sCb;
            _errorCallback = eCb;
            _options = opts;

            var type = _methods.toLowerCase();

            switch (type) {
                case 'get':
                    _get();
                    break;
                case 'put':
                    _put();
                    break;
                case 'patch':
                    _patch();
                    break;
                case 'delete':
                    _delete();
                    break;
                case 'jsonp':
                    _jsonp();
                    break;
                default:
                     _post();
                break;
            }
    }

    return {
        send : _send
    }


})();

if (typeof module !== "undefined") {
	module.exports = vHttp;
}
@@ -100,24 +100,81 @@
 ction () %7B%0A%0A
+    // Global Vue Http Object%0A    var $http = Vue.http;%0A%0A
     var _url
@@ -363,28 +363,25 @@
  %7B%0A         
-Vue.
+$
 http.get(_ur
@@ -477,28 +477,25 @@
  %7B%0A         
-Vue.
+$
 http.post(_u
@@ -591,28 +591,25 @@
  %7B%0A         
-Vue.
+$
 http.put(_ur
@@ -706,28 +706,25 @@
  %7B%0A         
-Vue.
+$
 http.patch(_
@@ -824,28 +824,25 @@
  %7B%0A         
-Vue.
+$
 http.delete(
@@ -946,20 +946,17 @@
         
-Vue.
+$
 http.jso
@@ -1932,17 +1932,16 @@
 %0A    %7D%0A%0A
-%0A
 %7D)();%0A%0Ai
@@ -1980,9 +1980,12 @@
 ) %7B%0A
-%09
+    
 modu

Initialize the global Vue http object