@Test public void testRender() { LocalDate date = LocalDate.of(2015, JANUARY, 1); byte[] bytes = new byte[29]; int end = HttpDate.render(date.atStartOfDay().toInstant(UTC).getEpochSecond(), bytes, 0); assertEquals(29, end); assertArrayEquals("Thu, 01 Jan 2015 00:00:00 GMT".getBytes(ISO_8859_1), bytes); }
static void render(long epochSeconds, ByteBuf buf) { int pos = render(epochSeconds, buf.array(), buf.tail()); buf.tail(pos); }
HttpDate { static void render(long epochSeconds, ByteBuf buf) { int pos = render(epochSeconds, buf.array(), buf.tail()); buf.tail(pos); } }
HttpDate { static void render(long epochSeconds, ByteBuf buf) { int pos = render(epochSeconds, buf.array(), buf.tail()); buf.tail(pos); }  }
HttpDate { static void render(long epochSeconds, ByteBuf buf) { int pos = render(epochSeconds, buf.array(), buf.tail()); buf.tail(pos); }   }
HttpDate { static void render(long epochSeconds, ByteBuf buf) { int pos = render(epochSeconds, buf.array(), buf.tail()); buf.tail(pos); }   static final ParseException FAILED_TO_PARSE_DATE; }