| 程序包 | 说明 |
|---|---|
| org.apache.hc.core5.http2.impl.nio |
Default implementation of HTTP/2 transport based on
the asynchronous (non-blocking) I/O model.
|
| org.apache.hc.core5.reactor |
Event driven network communication APIs and components loosely based on
Doug Lea's
reactor pattern.
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
ClientH2UpgradeHandler
Protocol upgrade handler that upgrades the underlying
ProtocolIOSession
to HTTP/2 in case of a successful protocol negotiation. |
class |
ClientHttp1UpgradeHandler
Protocol upgrade handler that upgrades the underlying
ProtocolIOSession
to HTTP/1.1 in case of a successful protocol negotiation or as a default fall-back. |
class |
ServerH2UpgradeHandler
Protocol upgrade handler that upgrades the underlying
ProtocolIOSession
to HTTP/2 in case of a successful protocol negotiation. |
class |
ServerHttp1UpgradeHandler
Protocol upgrade handler that upgrades the underlying
ProtocolIOSession
to HTTP/1.1 in case of a successful protocol negotiation or as a default fall-back. |
| 限定符和类型 | 方法和说明 |
|---|---|
default void |
ProtocolIOSession.registerProtocol(String protocolId,
ProtocolUpgradeHandler upgradeHandler)
Registers protocol upgrade handler with the given application protocol ID.
|
Copyright © 2023. All rights reserved.