Skip to main content

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 (https://github.com/grid-js/gridjs/blob/master/src/storage/storage.ts#L21-L24).

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

Live Editor
Result
Loading...