public class HttpService extends Object
| 构造器和说明 |
|---|
HttpService()
注册关闭函数
|
| 限定符和类型 | 方法和说明 |
|---|---|
RequestBuilder |
get()
创建一个builder
|
RequestBuilder |
method(io.netty.handler.codec.http.HttpMethod method)
创建一个builder
|
RequestBuilder |
post()
创建一个builder
|
HttpService |
setConfig(org.asynchttpclient.AsyncHttpClientConfig config)
通过配置创建 Http服务
|
HttpService |
sslConfig(io.netty.handler.ssl.SslContext sslContext)
通过配置创建 Http服务
|
public HttpService setConfig(org.asynchttpclient.AsyncHttpClientConfig config)
config - public HttpService sslConfig(io.netty.handler.ssl.SslContext sslContext) throws RuntimeException
config - SSLExceptionRuntimeExceptionpublic RequestBuilder post()
public RequestBuilder get()
public RequestBuilder method(io.netty.handler.codec.http.HttpMethod method)
Copyright © 2020. All rights reserved.