getServerUniverseFunctionApiByRequest method
FutureOr<ServerUniverseFunction?>
getServerUniverseFunctionApiByRequest({
- required Request request,
Implementation
FutureOr<ServerUniverseFunction?> getServerUniverseFunctionApiByRequest({
required Request request,
}) async {
for (ServerUniverseFunction server_universeDartFunction in functions) {
if (RegExp(server_universeDartFunction.path, caseSensitive: false).hasMatch(request.path)) {
if (server_universeDartFunction.method.hasMatch(request.method)) {
return server_universeDartFunction;
}
}
}
return null;
}