The HTTP client for Vue.js
The plugin for Vue.js provides services for making web requests and handle responses using a XMLHttpRequest or JSONP.
You can install it via yarn or NPM.
$ yarn add vue-resource
$ npm install vue-resourceAvailable on jsdelivr, unpkg or cdnjs.
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>{
// GET /someUrl
this.$http.get('/someUrl').then(response => {
// get body data
this.someData = response.body;
}, response => {
// error callback
});
}Details changes for each release are documented in the release notes.
If you find a bug or want to contribute to the code or documentation, you can help by submitting an issue or a pull request.
how use vue-resource in composition API
Can I use this package for SEO optimisation tasks?
Any plans for Vue 3 support?
The field is converted to undefined
HTTP req response throws net::ERR_CONNECTION_CLOSED
Trying to get in touch regarding a security issue
serialize array object must be PlainObject?
Unexpected query string when passing params containing an array
302 redirect can't be catched
Error firefox IPV6 VUE.JS vue-resource.common.js XMLHttpRequest