diff --git a/jetty-server/src/main/java/org/eclipse/jetty/server/HttpConfiguration.java b/jetty-server/src/main/java/org/eclipse/jetty/server/HttpConfiguration.java index 4c9c1499aeb..58ee9af8ac0 100644 --- a/jetty-server/src/main/java/org/eclipse/jetty/server/HttpConfiguration.java +++ b/jetty-server/src/main/java/org/eclipse/jetty/server/HttpConfiguration.java @@ -318,11 +318,21 @@ public class HttpConfiguration implements Dumpable return _sendXPoweredBy; } + /** + * Indicates if the {@code Date} header should be sent in responses. + * + * @param sendDateHeader true if the {@code Date} header should be sent in responses + */ public void setSendDateHeader(boolean sendDateHeader) { _sendDateHeader = sendDateHeader; } + /** + * Indicates if the {@code Date} header will be sent in responses. + * + * @return true if the {@code Date} header will be sent in responses + */ @ManagedAttribute("Whether to send the Date header in responses") public boolean getSendDateHeader() {