Class

ReketClient

(abstract) ReketClient(client)

Class that will host an HTTP client. A client must be configured in order to make HTTP requests with Reket class.

Constructor

# abstract new ReketClient(client)

Parameters:
Name Type Description
client Object

An HTTP client that will handle HTTP calls (e.g. axios, ky, etc...).

View Source client.js, line 1

Members

Object

# client

The HTTP client that will be used for making HTTP requests.

View Source client.js, line 12

Methods

# abstract request()

Method that needs to be implemented by classes that extend ReketClient.

When implementing the method, the extended class has to use the defined client to send the HTTP requests.

This method will be called by Reket.request method in order to make HTTP calls.

View Source client.js, line 35

If extended class does not implement the method.

Error