Package | Description |
---|---|
cn.hutool.http |
Hutool-http针对JDK的HttpUrlConnection做一层封装,简化了HTTPS请求、文件上传、Cookie记忆等操作,使Http请求变得无比简单。
|
Modifier and Type | Method and Description |
---|---|
HttpResponse |
HttpRequest.execute()
执行Reuqest请求
|
HttpResponse |
HttpRequest.execute(boolean isAsync)
执行Reuqest请求
|
HttpResponse |
HttpRequest.executeAsync()
|
HttpResponse |
HttpResponse.sync()
同步
如果为异步状态,则暂时不读取服务器中响应的内容,而是持有Http链接的 InputStream 。当调用此方法时,异步状态转为同步状态,此时从Http链接流中读取body内容并暂存在内容中。如果已经是同步状态,则不进行任何操作。 |
Constructor and Description |
---|
HttpInputStream(HttpResponse response)
构造
|
Copyright © 2021. All rights reserved.