| Package | Description |
|---|---|
| org.dromara.hutool.http.meta |
Http元数据信息,包括Header枚举、状态码、Http方法、枚举Content-Type等
|
| Modifier and Type | Method and Description |
|---|---|
static ContentType |
ContentType.get(String body)
从请求参数的body中判断请求的Content-Type类型,支持的类型有:
1. application/json
1. application/xml
|
static ContentType |
ContentType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ContentType[] |
ContentType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
ContentType.build(ContentType contentType,
Charset charset)
输出Content-Type字符串,附带编码信息
|
Copyright © 2025. All rights reserved.