setCredential static method

void setCredential(
  1. Client client,
  2. bool value
)

Implementation

static void setCredential(http.Client client, bool value) {
  // only web
  if (client is BrowserClient) {
    client.withCredentials = value;
  }
}