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

Method addDateHeader

java/org/apache/catalina/connector/Response.java:967–984  ·  view source on GitHub ↗
(String name, long value)

Source from the content-addressed store, hash-verified

965
966
967 @Override
968 public void addDateHeader(String name, long value) {
969
970 if (name == null || name.isEmpty()) {
971 return;
972 }
973
974 if (isCommitted()) {
975 return;
976 }
977
978 // Ignore any call from an included servlet
979 if (included) {
980 return;
981 }
982
983 addHeader(name, FastHttpDateFormat.formatDate(value));
984 }
985
986
987 @Override

Callers

nothing calls this directly

Calls 4

isCommittedMethod · 0.95
addHeaderMethod · 0.95
formatDateMethod · 0.95
isEmptyMethod · 0.45

Tested by

no test coverage detected