setDateHeader() — netty Function Reference
Architecture documentation for the setDateHeader() function in HttpStaticFileServerHandler.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 1a5a1970_da05_7dc6_1738_6d81add6a986["setDateHeader()"] 02ca82d7_508c_aabe_bb4d_dd1603c38b01["HttpStaticFileServerHandler"] 1a5a1970_da05_7dc6_1738_6d81add6a986 -->|defined in| 02ca82d7_508c_aabe_bb4d_dd1603c38b01 33129c23_d788_1580_659d_7761765ab670["sendNotModified()"] 33129c23_d788_1580_659d_7761765ab670 -->|calls| 1a5a1970_da05_7dc6_1738_6d81add6a986 style 1a5a1970_da05_7dc6_1738_6d81add6a986 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
example/src/main/java/io/netty/example/http/file/HttpStaticFileServerHandler.java lines 378–384
private static void setDateHeader(FullHttpResponse response) {
SimpleDateFormat dateFormatter = new SimpleDateFormat(HTTP_DATE_FORMAT, Locale.US);
dateFormatter.setTimeZone(TimeZone.getTimeZone(HTTP_DATE_GMT_TIMEZONE));
Calendar time = new GregorianCalendar();
response.headers().set(HttpHeaderNames.DATE, dateFormatter.format(time.getTime()));
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does setDateHeader() do?
setDateHeader() is a function in the netty codebase, defined in example/src/main/java/io/netty/example/http/file/HttpStaticFileServerHandler.java.
Where is setDateHeader() defined?
setDateHeader() is defined in example/src/main/java/io/netty/example/http/file/HttpStaticFileServerHandler.java at line 378.
What calls setDateHeader()?
setDateHeader() is called by 1 function(s): sendNotModified.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free