Class Http2
java.lang.Object
org.springframework.boot.web.server.Http2
Simple server-independent abstraction for HTTP/2 configuration.
- Since:
- 2.0.0
- Author:
- Brian Clozel
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Return whether to enable HTTP/2 support, if the current environment supports it.void
setEnabled
(boolean enabled)
-
Constructor Details
-
Http2
public Http2()
-
-
Method Details
-
isEnabled
public boolean isEnabled()Return whether to enable HTTP/2 support, if the current environment supports it.- Returns:
true
to enable HTTP/2 support
-
setEnabled
public void setEnabled(boolean enabled)
-