Search in sources :

Example 1 with ServerPushFilterFactory

use of io.dropwizard.jetty.ServerPushFilterFactory in project dropwizard by dropwizard.

the class DefaultServerFactoryTest method loadsServerPushConfig.

@Test
public void loadsServerPushConfig() throws Exception {
    final ServerPushFilterFactory serverPush = http.getServerPush();
    assertThat(serverPush.isEnabled()).isTrue();
    assertThat(serverPush.getRefererHosts()).contains("dropwizard.io");
    assertThat(serverPush.getRefererPorts()).contains(8445);
}
Also used : ServerPushFilterFactory(io.dropwizard.jetty.ServerPushFilterFactory) Test(org.junit.Test)

Aggregations

ServerPushFilterFactory (io.dropwizard.jetty.ServerPushFilterFactory)1 Test (org.junit.Test)1