| 程序包 | 说明 |
|---|---|
| org.apache.hc.core5.http.impl.bootstrap |
HTTP/1.1 requester and server bootstrap.
|
| org.apache.hc.core5.http.nio.support |
Support classes for the asynchronous I/O model.
|
| org.apache.hc.core5.http2.impl.nio.bootstrap |
HTTP/2 capable requester and server bootstrap.
|
| 限定符和类型 | 方法和说明 |
|---|---|
<T> AsyncServerBootstrap |
AsyncServerBootstrap.register(String uriPattern,
AsyncServerRequestHandler<T> requestHandler)
Registers the given
AsyncServerRequestHandler as a default handler for URIs
matching the given pattern. |
<T> AsyncServerBootstrap |
AsyncServerBootstrap.registerVirtual(String hostname,
String uriPattern,
AsyncServerRequestHandler<T> requestHandler)
Registers the given
AsyncServerRequestHandler as a handler for URIs
matching the given host and the pattern. |
| 构造器和说明 |
|---|
BasicServerExchangeHandler(AsyncServerRequestHandler<T> requestHandler) |
| 限定符和类型 | 方法和说明 |
|---|---|
<T> H2ServerBootstrap |
H2ServerBootstrap.register(String uriPattern,
AsyncServerRequestHandler<T> requestHandler)
Registers the given
AsyncServerRequestHandler as a default handler for URIs
matching the given pattern. |
<T> H2ServerBootstrap |
H2ServerBootstrap.registerVirtual(String hostname,
String uriPattern,
AsyncServerRequestHandler<T> requestHandler)
Registers the given
AsyncServerRequestHandler as a handler for URIs
matching the given host and the pattern. |
Copyright © 2023. All rights reserved.