接口 HttpExecutor
public interface HttpExecutor
HttpExecutor
-
方法概要
修饰符和类型方法说明execute
(HttpRequest httpRequest) 执行http请求execute
(HttpRequest httpRequest, Executor executor) 异步执行http请求
-
方法详细资料
-
execute
执行http请求- 参数:
httpRequest
- http请求内容- 返回:
- HttpResponse http响应
- 抛出:
Exception
- 异常
-
execute
异步执行http请求- 参数:
httpRequest
- http请求内容executor
- 线程池- 返回:
- CompletableFuture of HttpResponse http响应
-