options static method

Future<Response> options(
  1. String url
)

Implementation

static Future<http.Response> options(String url) async {
  final client = http.Client();
  final request = http.Request('OPTIONS', Uri.parse(url));
  final streamedResponse = await client.send(request);
  return http.Response.fromStream(streamedResponse);
}