Search Driver
When a request call has been made, the Barktler instance will search the driver for the current call by the following method and order.
- Instance Driver
- Instance Default Driver
- Global Driver
Set Driver
Set instance driver by calling api.useDriver(driver)
.
Set instance default driver by config the following code.
class MyAPI extends Barktler {
protected readonly defaultDriver: RequestDriver = driver;
}
Set global driver by calling Barktler.useGlobalDefaultDriver(driver)
.