options method
Future<HttpResponse>
options(
- HttpClient httpClient,
- String path, {
- bool fullPath = false,
- Credential? authorization,
- Map<
String, String?> ? parameters, - String? accept,
- OnCachedResponse? onStaleResponse,
- Duration? staleResponseDelay,
Does an OPTIONS request.
- See requestURL documentation.
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);
}