public static interface HttpHandler.SenderBuilder
| 限定符和类型 | 方法和说明 |
|---|---|
void |
finishRequest(ResponseInfo responseInfo)
方式二:直接给出请求结果。
|
void |
sendRequest(RequestObject httpRequest,
HttpHandler.ResponseDecoder decoder)
方式一:发送调用请求。
|
void sendRequest(RequestObject httpRequest, HttpHandler.ResponseDecoder decoder)
IllegalStateException - sendRequest、finishRequest 两个方法中只有一个能被成功调用,且只能调用一次。void finishRequest(ResponseInfo responseInfo) throws IOException
IllegalStateException - sendRequest、finishRequest 两个方法中只有一个能被成功调用,且只能调用一次。IOExceptionCopyright © 2020–2021. All rights reserved.