| 程序包 | 说明 |
|---|---|
| com.luckyframework.httpclient.core | |
| com.luckyframework.httpclient.core.impl |
| 限定符和类型 | 字段和说明 |
|---|---|
static ContentType |
ContentType.APPLICATION_ATOM_XML |
static ContentType |
ContentType.APPLICATION_FORM_URLENCODED |
static ContentType |
ContentType.APPLICATION_JSON |
static ContentType |
ContentType.APPLICATION_OCTET_STREAM |
static ContentType |
ContentType.APPLICATION_SVG_XML |
static ContentType |
ContentType.APPLICATION_XHTML_XML |
static ContentType |
ContentType.APPLICATION_XML |
static ContentType |
ContentType.DEFAULT_BINARY |
static ContentType |
ContentType.DEFAULT_TEXT |
static ContentType |
ContentType.MULTIPART_FORM_DATA |
static ContentType |
ContentType.TEXT_HTML |
static ContentType |
ContentType.TEXT_PLAIN |
static ContentType |
ContentType.TEXT_XML |
static ContentType |
ContentType.WILDCARD |
| 限定符和类型 | 方法和说明 |
|---|---|
static ContentType |
ContentType.create(String mimeType,
Charset charset) |
static ContentType |
ContentType.create(String mimeType,
String charset) |
static ContentType |
ContentType.create(String mimeType,
com.luckyframework.common.TempPair<String,String>[] params) |
default ContentType |
HttpHeaderManager.getContentType() |
default ContentType |
Response.getContentType()
获取响应的Content-Type
|
ContentType |
BodyObject.getContentType()
获取Content-Type
|
| 限定符和类型 | 方法和说明 |
|---|---|
static BodyObject |
BodyObject.builder(ContentType contentType,
String body)
返回自定义格式的BodyObject
|
default HttpHeaderManager |
HttpHeaderManager.setContentType(ContentType contentType) |
| 限定符和类型 | 方法和说明 |
|---|---|
DefaultRequest |
DefaultRequest.setContentType(ContentType contentType) |
Copyright © 2023. All rights reserved.