init method

  1. @override
Future init({
  1. Uri? baseUrl,
})
override

This method is called before any requests are processed. This can be used to complete any initialisation needed before the worker can call processRequest.

For example, if you are using Isolates to call requests, spawn the isolates in this function.

Implementation

@override
Future init({Uri? baseUrl}) {
  throw UnimplementedError('Unidentified platform');
}