@@ -474,13 +474,15 @@ module HTTP {
474474
475475 /** Provides classes for modeling HTTP clients. */
476476 module Client {
477+ import codeql.ruby.internal.ConceptsShared:: Http:: Client as SC
478+
477479 /**
478480 * A method call that makes an outgoing HTTP request.
479481 *
480482 * Extend this class to refine existing API models. If you want to model new APIs,
481483 * extend `Request::Range` instead.
482484 */
483- class Request extends MethodCall instanceof Request:: Range {
485+ class Request extends SC :: Request instanceof Request:: Range {
484486 /** Gets a node which returns the body of the response */
485487 DataFlow:: Node getResponseBody ( ) { result = super .getResponseBody ( ) }
486488
@@ -490,24 +492,19 @@ module HTTP {
490492 * Gets a node that contributes to the URL of the request.
491493 * Depending on the framework, a request may have multiple nodes which contribute to the URL.
492494 */
493- deprecated DataFlow:: Node getURL ( ) { result = super .getURL ( ) or result = super .getAUrlPart ( ) }
494-
495- /**
496- * Gets a data-flow node that contributes to the URL of the request.
497- * Depending on the framework, a request may have multiple nodes which contribute to the URL.
498- */
499- DataFlow:: Node getAUrlPart ( ) { result = super .getAUrlPart ( ) }
500-
501- /** Gets a string that identifies the framework used for this request. */
502- string getFramework ( ) { result = super .getFramework ( ) }
495+ deprecated DataFlow:: Node getURL ( ) {
496+ result = super .getURL ( ) or result = Request:: Range .super .getAUrlPart ( )
497+ }
503498
504499 /**
505500 * Holds if this request is made using a mode that disables SSL/TLS
506501 * certificate validation, where `disablingNode` represents the point at
507502 * which the validation was disabled.
508503 */
509- predicate disablesCertificateValidation ( DataFlow:: Node disablingNode ) {
510- super .disablesCertificateValidation ( disablingNode )
504+ deprecated predicate disablesCertificateValidation ( DataFlow:: Node disablingNode ) {
505+ Request:: Range .super .disablesCertificateValidation ( disablingNode , _)
506+ or
507+ Request:: Range .super .disablesCertificateValidation ( disablingNode )
511508 }
512509 }
513510
@@ -519,7 +516,7 @@ module HTTP {
519516 * Extend this class to model new APIs. If you want to refine existing API models,
520517 * extend `Request` instead.
521518 */
522- abstract class Range extends MethodCall {
519+ abstract class Range extends SC :: Request :: Range {
523520 /** Gets a node which returns the body of the response */
524521 abstract DataFlow:: Node getResponseBody ( ) ;
525522
@@ -532,20 +529,13 @@ module HTTP {
532529 deprecated DataFlow:: Node getURL ( ) { none ( ) }
533530
534531 /**
535- * Gets a data-flow node that contributes to the URL of the request.
536- * Depending on the framework, a request may have multiple nodes which contribute to the URL.
537- */
538- abstract DataFlow:: Node getAUrlPart ( ) ;
539-
540- /** Gets a string that identifies the framework used for this request. */
541- abstract string getFramework ( ) ;
542-
543- /**
532+ * DEPRECATED: override `disablesCertificateValidation/2` instead.
533+ *
544534 * Holds if this request is made using a mode that disables SSL/TLS
545535 * certificate validation, where `disablingNode` represents the point at
546536 * which the validation was disabled.
547537 */
548- abstract predicate disablesCertificateValidation ( DataFlow:: Node disablingNode ) ;
538+ deprecated predicate disablesCertificateValidation ( DataFlow:: Node disablingNode ) { none ( ) }
549539 }
550540 }
551541
0 commit comments