Class DateHeader

java.lang.Object
dev.relism.flash.http.DateHeader

public final class DateHeader extends Object
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 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 HPACK date field.