Interface HeaderWriter.Headers
- Enclosing interface:
HeaderWriter
public static interface HeaderWriter.Headers
The headers of the response being written.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether the handler, or an earlier writer, set this header.intThe status of the response.booleanisSecure()Whether the request arrived over TLS this server terminated.voidSets the header, replacing what was there.voidsetIfAbsent(String name, String value) Sets the header unless the handler already did, which is how a default leaves a deliberate choice alone.
-
Method Details
-
contains
Whether the handler, or an earlier writer, set this header. -
set
-
setIfAbsent
-
isSecure
boolean isSecure()Whether the request arrived over TLS this server terminated. -
getStatus
int getStatus()The status of the response.
-