vue-resource
vue-resource copied to clipboard
The HTTP client for Vue.js
I'm having issue with options. When using `Vue.http.options.root` it's all good, when including with Vue instance it seems to be ignored. Same as issue here: https://github.com/pagekit/vue-resource/issues/487 Not sure why that...
I need to set content-type to 'application/json-rpc' but I can't do it. I try this code: ``` let headers = { headers: { 'Content-Type': 'application/json-rpc' } } return Promise.resolve() .then(function...
Hi everyone, Simply; I used two different ways to download the document. 1-XMLHttpRequest ```js var oReq = new XMLHttpRequest() oReq.open('GET', 'http://localhost:15354/api/......', true) oReq.setRequestHeader('Accept', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet') oReq.setRequestHeader('AuthenticationToken', '.......') oReq.responseType = 'arraybuffer' oReq.onload...
Installing vue-resource on node 10 or 11 results in an error with sqlite3. Through the dependency on got 8, sqlite3 3.x is being installed. sqlite3 4.x installs correctly on node...
### **src\url\index.js:58** ```javascript /** * Encodes a Url parameter string. * * @param {Object} obj */ Url.params = function (obj) { var params = [], escape = encodeURIComponent; params.add =...
The following is not the first configuration step: ``` http: { root: 'http://localhost:3000/', headers: { Authorization: 'Basic YXBpOnBhc3N3b3Jk' } }, ``` The first step is missing. Here are at least...
### Reproduction Link https://jsfiddle.net/f71oh0sb/1/ ### Steps to reproduce Im using IE11 on WIn10 in VirtualBox. Vue-resource is version 1.5.1. Vue: 2.5.17 ### What is Expected? executor.bind should be defined as...
follow is my code . ``` addImages: function(photo_name, photo_path, status){ Vue.http.options.emulateJSON = true; console.log(photo_name,photo_path,status); this.$http.post(this.postImagesUrl, { pic_name : photo_name, pic_path : photo_path, status : status }, {headers : {'Content-Type': 'application/x-www-form-urlencoded'...
I have something like this on my main.js before Vue instatiation: ``` if(typeof localStorage.lang === 'undefined') lang = 'pt'; else { if(localStorage.lang === 'pt') lang = 'pt'; else lang =...
### Reproduction Link ### Steps to reproduce ### What is Expected? ### What is actually happening?