request<ResponseType> method
Performs an HTTP request of the specified method.
Implementation
Future<ResponseType> request<ResponseType>(
String method,
String path, {
Map<String, String?>? query,
dynamic jsonBody,
Map<String, String>? headers,
JsonDeserializer<ResponseType>? responseDeserializer,
}) async {
query ??= const {};
return send<ResponseType>(
_newApiRequest(method, path, query: query, jsonBody: jsonBody),
headers: headers,
responseDeserializer: responseDeserializer,
);
}