getForRequest method

HttpAction? getForRequest(
  1. HttpRequest request
)

Implementation

HttpAction? getForRequest(HttpRequest request) {
  List<String> pathArgs = new List<String>.from(request.uri.pathSegments);
  String? className = this.mapPathToClassName(pathArgs);
  if (className == null) {
    return null;
  }
  HttpAction action = createAction(className, request, pathArgs);
  return action;
}