Source
bool only(List<String> allowedMethods) {
allowedMethods.map((String e) => e.toLowerCase());
if (allowedMethods.contains(this.method.toLowerCase())) {
return true;
} else {
this.res.error(400);
return false;
}
}
bool only(List<String> allowedMethods) {
allowedMethods.map((String e) => e.toLowerCase());
if (allowedMethods.contains(this.method.toLowerCase())) {
return true;
} else {
this.res.error(400);
return false;
}
}