Need help with vue-resource?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

pagekit
10.0K Stars 1.7K Forks MIT License 475 Commits 101 Opened issues

Description

The HTTP client for Vue.js

Services available

!
?

Need anything else?

Contributors list

No Data

vue-resource Build Downloads jsdelivr Version License

The plugin for Vue.js provides services for making web requests and handle responses using a XMLHttpRequest or JSONP.

Features

  • Supports the Promise API and URI Templates
  • Supports interceptors for request and response
  • Supports latest Firefox, Chrome, Safari, Opera and IE9+
  • Supports Vue 1.0 & Vue 2.0
  • Compact size 14KB (5.3KB gzipped)

Installation

You can install it via yarn or NPM.

$ yarn add vue-resource
$ npm install vue-resource

CDN

Available on jsdelivr, unpkg or cdnjs.

html

Example

{
  // GET /someUrl
  this.$http.get('/someUrl').then(response => {

// get body data
this.someData = response.body;

}, response => { // error callback }); }

Documentation

Changelog

Details changes for each release are documented in the release notes.

Contribution

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.

License

MIT

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.