类 Http2
java.lang.Object
org.springframework.boot.web.server.Http2
Simple server-independent abstraction for HTTP/2 configuration.
- 从以下版本开始:
- 2.0.0
- 作者:
- Brian Clozel
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明boolean
Return whether to enable HTTP/2 support, if the current environment supports it.void
setEnabled
(boolean enabled)
-
构造器详细资料
-
Http2
public Http2()
-
-
方法详细资料
-
isEnabled
public boolean isEnabled()Return whether to enable HTTP/2 support, if the current environment supports it.- 返回:
true
to enable HTTP/2 support
-
setEnabled
public void setEnabled(boolean enabled)
-