vue-resource

The HTTP client for Vue.js

Github stars Tracking Chart

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.

<script src="https://cdn.jsdelivr.net/npm/vue-resource@1.5.1"></script>

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

Overview

Name With Ownerpagekit/vue-resource
Primary LanguageJavaScript
Program languageJavaScript (Language Count: 3)
Platform
License:MIT License
Release Count53
Last Release Name1.5.3 (Posted on 2021-06-14 14:02:28)
First Release Name0.1.0 (Posted on )
Created At2014-02-07 23:07:56
Pushed At2022-12-08 21:37:18
Last Commit At2021-06-14 14:02:28
Stargazers Count10.1k
Watchers Count259
Fork Count1.6k
Commits Count483
Has Issues Enabled
Issues Count536
Issue Open Count83
Pull Requests Count30
Pull Requests Open Count30
Pull Requests Close Count82
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private
To the top