Skip to content

suiz0/vue-http

Repository files navigation

vue-http

About

vuejs jQuery-like ajax facade plugin for axios library

Usage


The library can be used as a vuejs plugin:

import vHttp from  'vue-http';
Vue.use(vHttp);

API


$ajaxSetup(config)

Set global configuration values that will be applied to every request

$ajaxSetup({
    headers: {
        'Authorization': 'bearer hello-world'
    },
    responseType: 'stream'
});

$get(url: string, config): Promise

Executes a GET request to the specific resource

$post(url: string, data, config): Promise

Executes a POST request to the specific resource

$del(url: string, config): Promise

Executes a DELETE request

$put(url: string, data, config): Promise

Executes a PUT request to the specific resource

About

jQuery-like facade for axios library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published