ServerpodCloudEmailClient constructor

ServerpodCloudEmailClient({
  1. String baseUrl = defaultBaseUrl,
  2. Duration timeout = defaultTimeout,
  3. Client? httpClient,
})

Creates a new ServerpodCloudEmailClient.

Pass httpClient to inject a custom HTTP client (e.g. for testing), baseUrl to target a different service endpoint (defaults to defaultBaseUrl), and timeout to bound the request duration (defaults to defaultTimeout).

Implementation

ServerpodCloudEmailClient({
  this.baseUrl = defaultBaseUrl,
  this.timeout = defaultTimeout,
  final http.Client? httpClient,
}) : _httpClient = httpClient ?? http.Client();