Example #1
0
 @Test
 public void setMaxHeaderSizeShouldBeSuccessful() throws Http2Exception {
   encoder.headerTable().maxHeaderTableSize(10);
   Http2Headers in = headers();
   assertRoundtripSuccessful(in);
   assertEquals(10, decoder.headerTable().maxHeaderTableSize());
 }
Example #2
0
  private void assertRoundtripSuccessful(Http2Headers in) throws Http2Exception {
    encoder.encodeHeaders(in, buffer);

    Http2Headers out = decoder.decodeHeaders(buffer);
    assertEquals(in, out);
  }