@@ -1046,71 +1046,9 @@ module HTTP {
1046
1046
}
1047
1047
}
1048
1048
1049
- /** Provides classes for modeling HTTP clients. */
1050
- module Client {
1051
- /**
1052
- * A data-flow node that makes an outgoing HTTP request.
1053
- *
1054
- * Extend this class to refine existing API models. If you want to model new APIs,
1055
- * extend `HTTP::Client::Request::Range` instead.
1056
- */
1057
- class Request extends DataFlow:: Node instanceof Request:: Range {
1058
- /**
1059
- * Gets a data-flow node that contributes to the URL of the request.
1060
- * Depending on the framework, a request may have multiple nodes which contribute to the URL.
1061
- */
1062
- DataFlow:: Node getAUrlPart ( ) { result = super .getAUrlPart ( ) }
1063
-
1064
- /** Gets a string that identifies the framework used for this request. */
1065
- string getFramework ( ) { result = super .getFramework ( ) }
1066
-
1067
- /**
1068
- * Holds if this request is made using a mode that disables SSL/TLS
1069
- * certificate validation, where `disablingNode` represents the point at
1070
- * which the validation was disabled, and `argumentOrigin` represents the origin
1071
- * of the argument that disabled the validation (which could be the same node as
1072
- * `disablingNode`).
1073
- */
1074
- predicate disablesCertificateValidation (
1075
- DataFlow:: Node disablingNode , DataFlow:: Node argumentOrigin
1076
- ) {
1077
- super .disablesCertificateValidation ( disablingNode , argumentOrigin )
1078
- }
1079
- }
1080
-
1081
- /** Provides a class for modeling new HTTP requests. */
1082
- module Request {
1083
- /**
1084
- * A data-flow node that makes an outgoing HTTP request.
1085
- *
1086
- * Extend this class to model new APIs. If you want to refine existing API models,
1087
- * extend `HTTP::Client::Request` instead.
1088
- */
1089
- abstract class Range extends DataFlow:: Node {
1090
- /**
1091
- * Gets a data-flow node that contributes to the URL of the request.
1092
- * Depending on the framework, a request may have multiple nodes which contribute to the URL.
1093
- */
1094
- abstract DataFlow:: Node getAUrlPart ( ) ;
1095
-
1096
- /** Gets a string that identifies the framework used for this request. */
1097
- abstract string getFramework ( ) ;
1098
-
1099
- /**
1100
- * Holds if this request is made using a mode that disables SSL/TLS
1101
- * certificate validation, where `disablingNode` represents the point at
1102
- * which the validation was disabled, and `argumentOrigin` represents the origin
1103
- * of the argument that disabled the validation (which could be the same node as
1104
- * `disablingNode`).
1105
- */
1106
- abstract predicate disablesCertificateValidation (
1107
- DataFlow:: Node disablingNode , DataFlow:: Node argumentOrigin
1108
- ) ;
1109
- }
1110
- }
1111
- // TODO: investigate whether we should treat responses to client requests as
1112
- // remote-flow-sources in general.
1113
- }
1049
+ import semmle.python.internal.ConceptsShared:: Http:: Client as Client
1050
+ // TODO: investigate whether we should treat responses to client requests as
1051
+ // remote-flow-sources in general.
1114
1052
}
1115
1053
1116
1054
/**
0 commit comments