Constructs a new ExpressClient.
The base hostname/URL that the client should send its requests to.
Reference to the axios library. If the client is running in the browser, it is assumed that axios will be
available on window
.
Sends a DELETE request to the given endpoint. Note that since DELETE requests cannot have a body, the args are passed as query parameters.
Sends a GET request to the given endpoint. Note that since GET requests cannot have a body, the args are passed as query parameters.
Sends a PATCH request to the given endpoint with the given arguments.
Sends a POST request to the given endpoint with the given arguments.
Sends a PUT request to the given endpoint with the given arguments.
General HTTP request method.
Generated using TypeDoc
Basic AJAX class than can be used in Node or the browser. Essentially just wraps around some axios methods and provides the proper typing based on the given HttpInterface, so that no requests are malformed.