MCPcopy Create free account
hub / github.com/apache/tomcat / removeHeader

Method removeHeader

java/org/apache/tomcat/util/http/MimeHeaders.java:415–421  ·  view source on GitHub ↗

Removes a header field with the specified name. Does nothing if such a field could not be found. @param name the name of the header field to be removed

(String name)

Source from the content-addressed store, hash-verified

413 * @param name the name of the header field to be removed
414 */
415 public void removeHeader(String name) {
416 for (int i = 0; i < count; i++) {
417 if (headers[i].getName().equalsIgnoreCase(name)) {
418 removeHeader(i--);
419 }
420 }
421 }
422
423 /**
424 * Reset, move to the end and then reduce count by 1.

Callers 6

setValueMethod · 0.95
prepareResponseMethod · 0.95
writeEarlyHintsMethod · 0.95
prepareHeadersMethod · 0.95
prepareResponseMethod · 0.95
invokeMethod · 0.95

Calls 3

recycleMethod · 0.95
getNameMethod · 0.65
equalsIgnoreCaseMethod · 0.45

Tested by

no test coverage detected