HttpClient is an opinionated wrapper around fetch.
I'm going to move this to its own repo/npm module. There's more I'd like to do with and lots more tests.
Because it has usefulness outside this repo, we're going to set it free.

Oh noes, not another npm module dependency, the world will end
Came up with this: https://github.com/skellock/apisauce
Next step: bring in a PR to show how it works. See if y'all like it enough to include.
Status update.
There's an incoming patch for React Native which will bestow XMLHttpRequest the power to user ontimeout and onerror. I'm hoping for 0.24. They're just doing the rebase dance right now.
Once that's in master I'd be comfortable declaring apisauce ignite-worthy.
Tracking here: https://github.com/skellock/apisauce/issues/7
Ok, that PR just landed in master. I'll get to work on this integration.
https://github.com/infinitered/ignite/pull/62
The PR for the ontimeout and onerror will be arriving in 0.25. I'll circle back when 0.25 lands and make sure everything is working as you'd expect.
YES! Looking great!
Most helpful comment
Status update.
There's an incoming patch for React Native which will bestow
XMLHttpRequestthe power to userontimeoutandonerror. I'm hoping for 0.24. They're just doing the rebase dance right now.Once that's in master I'd be comfortable declaring
apisauceignite-worthy.Tracking here: https://github.com/skellock/apisauce/issues/7