get method

Future<SignalRHttpResponse> get(
  1. String url, {
  2. required SignalRHttpRequest options,
})

Issues an HTTP GET request to the specified URL, returning a Promise that resolves with an {@link @microsoft/signalr.HttpResponse} representing the result.

url The URL for the request. HttpRequest options Additional options to configure the request. The 'url' field in this object will be overridden by the url parameter. Returns a Future

Implementation

Future<SignalRHttpResponse> get(String url,
    {required SignalRHttpRequest options}) {
  options.method = 'GET';
  options.url = url;
  return send(options);
}