| 程序包 | 说明 |
|---|---|
| io.polaris.core.net.http |
| 限定符和类型 | 方法和说明 |
|---|---|
static ContentType |
ContentType.get(String body)
从请求参数的body中判断请求的Content-Type类型,支持的类型有:
application/json
application/xml
|
ContentType |
RequestSettings.getContentType() |
static ContentType |
ContentType.valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static ContentType[] |
ContentType.values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
| 限定符和类型 | 方法和说明 |
|---|---|
RequestSettings |
RequestSettings.withContentType(ContentType contentType) |
Copyright © 2025 fossc. All rights reserved.