Client.withAuthentication constructor

Client.withAuthentication(String url, String authentication)

Creates a client for the specified URL, using the given Authentication header.

Implementation

Client.withAuthentication(String url, String authentication) {
  this._client = new http.Client();
  this._url = url;
  this._authentication = authentication;
}