Package dev.relism.flash.http
Class DateHeader
java.lang.Object
dev.relism.flash.http.DateHeader
A daemon refreshes both protocol renderings once per second. Response writers only perform one
volatile read and copy already-encoded bytes into their output buffer.
-
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]bytes()The current pre-encoded"Date: ...\r\n"field line, accurate to within one second.static byte[]Current precompiled HPACKdatefield.
-
Method Details
-
bytes
public static byte[] bytes()The current pre-encoded"Date: ...\r\n"field line, accurate to within one second. Never allocates — the same array is returned until the next refresh. -
hpackBytes
public static byte[] hpackBytes()Current precompiled HPACKdatefield.
-