All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.muserver.Http2Config Maven / Gradle / Ivy

The newest version!
package io.muserver;

/**
 * Configuration settings for HTTP2
 * @see Http2ConfigBuilder
 */
public class Http2Config {
    final boolean enabled;

    Http2Config(boolean enabled) {
        this.enabled = enabled;
    }

    @Override
    public String toString() {
        return "Http2Config{" +
            "enabled=" + enabled +
            '}';
    }

    /**
     * @return A new HTTP2 config builder based on the current settings
     */
    public Http2ConfigBuilder toBuilder() {
        return new Http2ConfigBuilder()
            .enabled(enabled);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy