get_resource_string method
Implementation
String get_resource_string(HttpRequest req, String bucket, String key) {
if (bucket.isEmpty) {
return "/";
} else {
final substring = this.get_subresource_string(req.param);
print('param:${req.param} sub string:$substring');
if (substring.isNotEmpty) {
return "/${bucket}/${key}${substring}";
} else {
final test_seq = req.url.split("?");
if (test_seq.length > 1) {
return "/${bucket}/${key}?${test_seq.last}";
} else {
return "/${bucket}/${key}";
}
}
}
}