| Package | Description |
|---|---|
| org.tio.http.common |
| Modifier and Type | Field and Description |
|---|---|
static HeaderValue |
HeaderValue.Content_Type.APPLICATION_JSON |
static HeaderValue |
HeaderValue.Transfer_Encoding.chunked |
static HeaderValue |
HeaderValue.Connection.close |
static HeaderValue |
HeaderValue.Content_Type.DEFAULT_TYPE |
static HeaderValue |
HeaderValue.Content_Encoding.gzip |
static HeaderValue |
HeaderValue.Connection.keep_alive |
static HeaderValue |
HeaderValue.Cache_Control.MAX_AGE_60 |
static HeaderValue |
HeaderValue.Cache_Control.no_cache |
static HeaderValue |
HeaderValue.Server.SERVER_INFO |
static HeaderValue |
HeaderValue.Content_Type.TEXT_EVENT_STREAM |
static HeaderValue |
HeaderValue.Content_Type.TEXT_HTML |
static HeaderValue |
HeaderValue.Content_Type.TEXT_PLAIN |
static HeaderValue |
HeaderValue.Keep_Alive.TIMEOUT_10_MAX_20 |
static HeaderValue |
HeaderValue.Connection.Upgrade |
static HeaderValue |
HeaderValue.Upgrade.WebSocket |
| Modifier and Type | Method and Description |
|---|---|
static HeaderValue |
HeaderValue.from(String name) |
static HeaderValue |
HeaderValue.from(String name,
Charset charset) |
HeaderValue |
HttpResponse.getContentType()
获取"Content-Type"头部内容
|
HeaderValue |
HttpResponse.getHeader(HeaderName name) |
HeaderValue |
HttpResponse.getLastModified() |
| Modifier and Type | Method and Description |
|---|---|
Map<HeaderName,HeaderValue> |
HttpResponse.getHeaders()
警告:通过本方法获得Map |
| Modifier and Type | Method and Description |
|---|---|
void |
HttpResponse.addHeader(HeaderName key,
HeaderValue value) |
void |
HttpResponse.setLastModified(HeaderValue lastModified) |
| Modifier and Type | Method and Description |
|---|---|
void |
HttpResponse.addHeaders(Map<HeaderName,HeaderValue> headers) |
| Constructor and Description |
|---|
HttpResponse(Map<HeaderName,HeaderValue> responseHeaders,
byte[] body) |
Copyright © 2025. All rights reserved.