Class Http2
java.lang.Object
org.springframework.boot.web.server.Http2
Simple server-independent abstraction for HTTP/2 configuration.
- Since:
- 2.0.0
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanReturn whether to enable HTTP/2 support, if the current environment supports it.voidsetEnabled(boolean enabled) 
- 
Constructor Details- 
Http2public Http2()
 
- 
- 
Method Details- 
isEnabledpublic boolean isEnabled()Return whether to enable HTTP/2 support, if the current environment supports it.- Returns:
- trueto enable HTTP/2 support
 
- 
setEnabledpublic void setEnabled(boolean enabled) 
 
-