NhostFunctionsClient constructor

NhostFunctionsClient({
  1. required String url,
  2. UserSession? session,
  3. Client? httpClient,
})

httpClientOverride (optional) can be provided in order to customize the requests made by the Nhost APIs, which can be useful for proxy configuration and debugging.

Implementation

NhostFunctionsClient({
  required String url,
  UserSession? session,
  http.Client? httpClient,
})  : _apiClient = ApiClient(
        Uri.parse(url),
        httpClient: httpClient ?? http.Client(),
      ),
      _session = session ?? UserSession();