Package | Description |
---|---|
cn.hutool.http |
Hutool-http针对JDK的HttpUrlConnection做一层封装,简化了HTTPS请求、文件上传、Cookie记忆等操作,使Http请求变得无比简单。
|
Modifier and Type | Method and Description |
---|---|
Method |
HttpRequest.getMethod()
获取Http请求方法
|
Method |
HttpConnection.getMethod()
获取请求方法,GET/POST
|
static Method |
Method.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Method[] |
Method.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static HttpRequest |
HttpUtil.createRequest(Method method,
String url)
创建Http请求对象
|
HttpRequest |
HttpRequest.method(Method method)
设置请求方法
|
HttpRequest |
HttpRequest.setMethod(Method method)
设置请求方法
|
HttpConnection |
HttpConnection.setMethod(Method method)
设置请求方法
|
Copyright © 2024. All rights reserved.