js-data-http icon indicating copy to clipboard operation
js-data-http copied to clipboard

Impossible to set timeout globally

Open t-sakharova opened this issue 8 years ago • 0 comments

I want to set timeout for all requests, so I use httpConfig

const httpAdapter = new HttpAdapter({
  httpConfig: {
    timeout: 3000
  }
})

But this doesn't work, maybe because of this line? https://github.com/js-data/js-data-http/blob/master/src/index.js#L775

I can pass config to all methods (create, update, etc) and it works, but I want to do it in one place

t-sakharova avatar May 08 '17 11:05 t-sakharova