options method

Future<HttpResponse> options(
  1. HttpClient httpClient,
  2. String path, {
  3. bool fullPath = false,
  4. Credential? authorization,
  5. Map<String, String?>? parameters,
  6. String? accept,
  7. OnCachedResponse? onStaleResponse,
  8. Duration? staleResponseDelay,
})

Does an OPTIONS request.

Implementation

Future<HttpResponse> options(
  HttpClient httpClient,
  String path, {
  bool fullPath = false,
  Credential? authorization,
  Map<String, String?>? parameters,
  String? accept,
  OnCachedResponse? onStaleResponse,
  Duration? staleResponseDelay,
}) async {
  return request(
    httpClient,
    HttpMethod.OPTIONS,
    path,
    fullPath: fullPath,
    authorization: authorization,
    queryParameters: parameters,
    accept: accept,
    onStaleResponse: onStaleResponse,
    staleResponseDelay: staleResponseDelay,
  );
}