combinedLinkForNhost function
Link
combinedLinkForNhost(})
Creates a link that that configures automatically based on nhostClient
's
authentication state, and will select HTTP or Web Socket transport as
appropriate.
defaultHeaders
(optional) A set of headers that will be provided with
all requests passing through the link.
httpClientOverride
(optional) can be provided to customize the network
request, such as to configure proxies, introduce interceptors, etc.
Implementation
Link combinedLinkForNhost(
NhostClientBase nhostClient, {
Map<String, String>? defaultHeaders,
http.Client? httpClientOverride,
}) {
return combinedLinkForNhostAuth(
nhostClient.gqlEndpointUrl,
nhostClient.auth,
defaultHeaders: defaultHeaders,
httpClientOverride: httpClientOverride,
);
}