@@ -213,21 +213,26 @@ class SQLEscape extends DataFlow::Node {
213213/** Provides classes for modeling HTTP Header APIs. */
214214module HeaderDeclaration {
215215 /**
216- * A data-flow node that collects functions setting HTTP Headers' content .
216+ * A data-flow node that collects functions setting HTTP Headers.
217217 *
218218 * Extend this class to model new APIs. If you want to refine existing API models,
219219 * extend `HeaderDeclaration` instead.
220220 */
221221 abstract class Range extends DataFlow:: Node {
222+ /**
223+ * Gets the argument containing the header name.
224+ */
225+ abstract DataFlow:: Node getNameArg ( ) ;
226+
222227 /**
223228 * Gets the argument containing the header value.
224229 */
225- abstract DataFlow:: Node getAnInput ( ) ;
230+ abstract DataFlow:: Node getValueArg ( ) ;
226231 }
227232}
228233
229234/**
230- * A data-flow node that collects functions setting HTTP Headers' content .
235+ * A data-flow node that collects functions setting HTTP Headers.
231236 *
232237 * Extend this class to model new APIs. If you want to refine existing API models,
233238 * extend `HeaderDeclaration` instead.
@@ -238,7 +243,12 @@ class HeaderDeclaration extends DataFlow::Node {
238243 HeaderDeclaration ( ) { this = range }
239244
240245 /**
241- * Gets the argument containing the header value .
246+ * Gets the argument containing the header name .
242247 */
243- DataFlow:: Node getAnInput ( ) { result = range .getAnInput ( ) }
248+ DataFlow:: Node getNameArg ( ) { result = range .getNameArg ( ) }
249+
250+ /**
251+ * Gets the argument containing the header name.
252+ */
253+ DataFlow:: Node getValueArg ( ) { result = range .getValueArg ( ) }
244254}
0 commit comments