requestResourceAnonymous method
Gets resources anonymously.
Implementation
Future<RequestResponse> requestResourceAnonymous(
RequestDetails details) async {
var owDetails = OWRequestDetails(
path: details.path,
method: details.method,
headers: details.headers,
body: details.body);
var owResponse =
await api.requestResource(ResourceRequestType.anonymous, owDetails);
owResponse.headers
.removeWhere((key, value) => key == null || value == null);
var headers = Map<String, String>.from(owResponse.headers);
return RequestResponse(
headers: headers,
body: owResponse.body,
ok: owResponse.ok,
status: owResponse.status);
}