@@ -150,21 +150,26 @@ class LDAPEscape extends DataFlow::Node {
150150/** Provides classes for modeling HTTP Header APIs. */
151151module HeaderDeclaration {
152152 /**
153- * A data-flow node that collects functions setting HTTP Headers' content .
153+ * A data-flow node that collects functions setting HTTP Headers.
154154 *
155155 * Extend this class to model new APIs. If you want to refine existing API models,
156156 * extend `HeaderDeclaration` instead.
157157 */
158158 abstract class Range extends DataFlow:: Node {
159+ /**
160+ * Gets the argument containing the header name.
161+ */
162+ abstract DataFlow:: Node getNameArg ( ) ;
163+
159164 /**
160165 * Gets the argument containing the header value.
161166 */
162- abstract DataFlow:: Node getAnInput ( ) ;
167+ abstract DataFlow:: Node getValueArg ( ) ;
163168 }
164169}
165170
166171/**
167- * A data-flow node that collects functions setting HTTP Headers' content .
172+ * A data-flow node that collects functions setting HTTP Headers.
168173 *
169174 * Extend this class to model new APIs. If you want to refine existing API models,
170175 * extend `HeaderDeclaration` instead.
@@ -175,7 +180,12 @@ class HeaderDeclaration extends DataFlow::Node {
175180 HeaderDeclaration ( ) { this = range }
176181
177182 /**
178- * Gets the argument containing the header value .
183+ * Gets the argument containing the header name .
179184 */
180- DataFlow:: Node getAnInput ( ) { result = range .getAnInput ( ) }
185+ DataFlow:: Node getNameArg ( ) { result = range .getNameArg ( ) }
186+
187+ /**
188+ * Gets the argument containing the header name.
189+ */
190+ DataFlow:: Node getValueArg ( ) { result = range .getValueArg ( ) }
181191}
0 commit comments