| 程序包 | 说明 |
|---|---|
| com.xiaoleilu.hutool.http |
| 限定符和类型 | 方法和说明 |
|---|---|
Method |
HttpConnection.getMethod()
获取请求方法,GET/POST
|
static Method |
Method.valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static Method[] |
Method.values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
| 限定符和类型 | 方法和说明 |
|---|---|
static HttpConnection |
HttpConnection.create(String urlStr,
Method method)
创建HttpConnection
|
HttpRequest |
HttpRequest.method(Method method)
设置请求方法
|
void |
HttpConnection.setMethod(Method method)
设置请求方法
|
| 构造器和说明 |
|---|
HttpConnection(String urlStr,
Method method)
构造HttpConnection
|
Copyright © 2016. All rights reserved.