| Package | Description |
|---|---|
| org.aoju.bus.http | |
| org.aoju.bus.http.accord | |
| org.aoju.bus.http.accord.platform | |
| org.aoju.bus.http.magic | |
| org.aoju.bus.http.metric | |
| org.aoju.bus.http.metric.http |
| Modifier and Type | Method and Description |
|---|---|
static Protocol |
Protocol.get(String protocol) |
Protocol |
Response.protocol() |
static Protocol |
Protocol.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Protocol[] |
Protocol.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
List<Protocol> |
Httpd.protocols() |
List<Protocol> |
Address.protocols() |
| Modifier and Type | Method and Description |
|---|---|
Response.Builder |
Response.Builder.protocol(Protocol protocol) |
| Modifier and Type | Method and Description |
|---|---|
Httpd.Builder |
Httpd.Builder.protocols(List<Protocol> protocols)
配置此客户端使用的协议以与远程服务器通信。默认情况下,该客户机将选择最有效的传输方式
退回到更普遍的协议。应用程序应该只调用这个方法来避免特定的兼容性问题,比如在启用HTTP/2时web服务器的行为不正确.
|
| Constructor and Description |
|---|
Address(String uriHost,
int uriPort,
DnsX dns,
SocketFactory socketFactory,
SSLSocketFactory sslSocketFactory,
HostnameVerifier hostnameVerifier,
CertificatePinner certificatePinner,
Authenticator proxyAuthenticator,
Proxy proxy,
List<Protocol> protocols,
List<ConnectionSuite> connectionSuites,
ProxySelector proxySelector) |
| Modifier and Type | Method and Description |
|---|---|
Protocol |
RealConnection.protocol() |
Protocol |
Connection.protocol() |
| Modifier and Type | Method and Description |
|---|---|
static List<String> |
Platform.alpnProtocolNames(List<Protocol> protocols) |
void |
Platform.configureTlsExtensions(SSLSocket sslSocket,
String hostname,
List<Protocol> protocols)
在
sslSocket上为route配置TLS扩展 |
void |
JdkWithJettyBootPlatform.configureTlsExtensions(SSLSocket sslSocket,
String hostname,
List<Protocol> protocols) |
void |
Jdk9Platform.configureTlsExtensions(SSLSocket sslSocket,
String hostname,
List<Protocol> protocols) |
void |
AndroidPlatform.configureTlsExtensions(SSLSocket sslSocket,
String hostname,
List<Protocol> protocols) |
| Modifier and Type | Method and Description |
|---|---|
Protocol |
HttpResponse.protocol() |
| Modifier and Type | Method and Description |
|---|---|
HttpBuilder |
HttpBuilder.protocols(List<Protocol> protocols) |
| Modifier and Type | Method and Description |
|---|---|
void |
EventListener.connectEnd(NewCall call,
InetSocketAddress inetSocketAddress,
Proxy proxy,
Protocol protocol)
在尝试套接字连接后立即调用.
|
void |
EventListener.connectFailed(NewCall call,
InetSocketAddress inetSocketAddress,
Proxy proxy,
Protocol protocol,
IOException ioe)
连接尝试失败时调用。如果有进一步的路由可用并且启用了故障恢复,则此故障不是终端.
|
| Modifier and Type | Field and Description |
|---|---|
Protocol |
StatusLine.protocol |
| Modifier and Type | Method and Description |
|---|---|
Protocol |
Http2Connection.getProtocol() |
| Modifier and Type | Method and Description |
|---|---|
static Response.Builder |
Http2Codec.readHttp2HeadersList(Headers headerBlock,
Protocol protocol) |
| Constructor and Description |
|---|
StatusLine(Protocol protocol,
int code,
String message) |
Copyright © 2020. All rights reserved.