Package | Description |
---|---|
org.tio.http.common | |
org.tio.http.common.utils | |
org.tio.http.server.util |
Modifier and Type | Field and Description |
---|---|
static HeaderValue |
HeaderValue.Content_Type.APPLICATION_ACAD_DWG |
static HeaderValue |
HeaderValue.Connection.close |
static HeaderValue |
HeaderValue.Content_Type.DEFAULT_TYPE |
static HeaderValue |
HeaderValue.FALSE |
static HeaderValue |
HeaderValue.Tio_From_Cache.FALSE |
static HeaderValue |
HeaderValue.Content_Encoding.gzip |
static HeaderValue |
HeaderValue.Connection.keep_alive |
static HeaderValue |
HeaderValue.Cache_Control.MAX_AGE_60 |
static HeaderValue |
HeaderValue.Content_Type.TEXT_HTML_HTML |
static HeaderValue |
HeaderValue.Content_Type.TEXT_PLAIN_JSON |
static HeaderValue |
HeaderValue.Content_Type.TEXT_PLAIN_TXT |
static HeaderValue |
HeaderValue.Keep_Alive.TIMEOUT_10_MAX_20 |
static HeaderValue |
HeaderValue.Server.TIO |
static HeaderValue |
HeaderValue.TRUE |
static HeaderValue |
HeaderValue.Tio_From_Cache.TRUE |
static HeaderValue |
HeaderValue.Connection.Upgrade |
static HeaderValue |
HeaderValue.Tio_Webpack_Used_Cache.V_1 |
static HeaderValue |
HeaderValue.Upgrade.WebSocket |
Modifier and Type | Method and Description |
---|---|
static HeaderValue |
HeaderValue.from(String name) |
static HeaderValue |
HeaderValue.EnumerableValue.from(String value) |
static HeaderValue |
HeaderValue.from(String name,
String 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) |
Modifier and Type | Field and Description |
---|---|
static HeaderValue |
HttpDateTimer.httpDateValue |
Modifier and Type | Method and Description |
---|---|
static HeaderValue |
HttpDateTimer.httpDateValue() |
Modifier and Type | Method and Description |
---|---|
static HttpResponse |
Resps.bytesWithHeaders(HttpRequest request,
byte[] bodyBytes,
Map<HeaderName,HeaderValue> headers) |
Copyright © 2021. All rights reserved.