@@ -325,6 +325,9 @@ module HTTP {
325325 * requests for this route, if any. These automatically become a `RemoteFlowSource`.
326326 */
327327 Parameter getARoutedParameter ( ) { result = range .getARoutedParameter ( ) }
328+
329+ /** Gets a string that identifies the framework used for this route setup. */
330+ string getFramework ( ) { result = range .getFramework ( ) }
328331 }
329332
330333 /** Provides a class for modeling new HTTP routing APIs. */
@@ -359,6 +362,9 @@ module HTTP {
359362 * requests for this route, if any. These automatically become a `RemoteFlowSource`.
360363 */
361364 abstract Parameter getARoutedParameter ( ) ;
365+
366+ /** Gets a string that identifies the framework used for this route setup. */
367+ abstract string getFramework ( ) ;
362368 }
363369 }
364370
@@ -378,6 +384,9 @@ module HTTP {
378384 * requests, if any. These automatically become a `RemoteFlowSource`.
379385 */
380386 Parameter getARoutedParameter ( ) { result = range .getARoutedParameter ( ) }
387+
388+ /** Gets a string that identifies the framework used for this route setup. */
389+ string getFramework ( ) { result = range .getFramework ( ) }
381390 }
382391
383392 /** Provides a class for modeling new HTTP request handlers. */
@@ -396,6 +405,9 @@ module HTTP {
396405 * requests, if any. These automatically become a `RemoteFlowSource`.
397406 */
398407 abstract Parameter getARoutedParameter ( ) ;
408+
409+ /** Gets a string that identifies the framework used for this request handler. */
410+ abstract string getFramework ( ) ;
399411 }
400412 }
401413
@@ -408,13 +420,17 @@ module HTTP {
408420 result = rs .getARoutedParameter ( ) and
409421 result in [ this .getArg ( _) , this .getArgByName ( _) ]
410422 }
423+
424+ override string getFramework ( ) { result = rs .getFramework ( ) }
411425 }
412426
413427 /** A parameter that will receive parts of the url when handling an incoming request. */
414428 private class RoutedParameter extends RemoteFlowSource:: Range , DataFlow:: ParameterNode {
415- RoutedParameter ( ) { this .getParameter ( ) = any ( RequestHandler handler ) .getARoutedParameter ( ) }
429+ RequestHandler handler ;
430+
431+ RoutedParameter ( ) { this .getParameter ( ) = handler .getARoutedParameter ( ) }
416432
417- override string getSourceType ( ) { result = " RoutedParameter" }
433+ override string getSourceType ( ) { result = handler . getFramework ( ) + " RoutedParameter" }
418434 }
419435
420436 /**
0 commit comments