requestResourceAuthenticated method
Gets authenticated resources.
Implementation
Future<RequestResponse> requestResourceAuthenticated(
RequestDetails details) async {
var owDetails = OWRequestDetails(
path: details.path,
method: details.method,
headers: details.headers,
body: details.body);
var owResponse =
await api.requestResource(ResourceRequestType.authenticated, 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);
}