This is a simple and easy to use wrapper over Javascript fetch api sendRequest method accepts url(String), method: GET, POST, PUT, DELETE(String), useCredentials(boolean) which is if you want the server to read the session cookie(it sets credentials=’include’), body, headers and simple queryParams object. By default the above wrapper sets…