Custom HTTP client

You can customize ServerStorage class and use your own HTTP client (or SDK) to send the HTTP calls. Simply use data property and return a Promise object that conforms to StorageResponse format (

In this example, we are implementing our own HTTP client (instead of default fetch API that ServerStorage provides):

Live Editor
Last updated on by Afshin Mehrabani