Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
V

vue-resource

> 前端框架
Open source

The HTTP client for Vue.js

10.0K stars0 likes3 views
WebsiteGitHub

About

The HTTP client for Vue.js

vue-resource

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.

xml
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>

Example

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

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

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

Documentation

  • Configuration
  • HTTP Requests/Response
  • Creating Resources
  • Code Recipes
  • API Reference

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

Issues· 113 open

View all issuesOpen on GitHub
  • #760

    how use vue-resource in composition API

    Updated Oct 24, 2023
  • #776

    Can I use this package for SEO optimisation tasks?

    Updated Mar 13, 2023
  • #762

    Any plans for Vue 3 support?

    Updated Aug 4, 2022
  • #763

    The field is converted to undefined

    Updated Jan 21, 2022
  • #689

    HTTP req response throws net::ERR_CONNECTION_CLOSED

    Updated Dec 2, 2021
  • #758

    Trying to get in touch regarding a security issue

    Updated Aug 26, 2021
  • #706

    serialize array object must be PlainObject?

    Updated Apr 12, 2021
  • #710

    Unexpected query string when passing params containing an array

    Updated Apr 12, 2021
  • #714

    302 redirect can't be catched

    Updated Dec 28, 2020
  • #749

    Error firefox IPV6 VUE.JS vue-resource.common.js XMLHttpRequest

    Updated Nov 25, 2020

> Tags

JavaScripthttp-clientjavascriptvuevue-resource

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 29, 2026
Category前端框架
PricingOpen source

> Related tools

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架