| Package | Description |
|---|---|
| org.tio.http.common | |
| org.tio.http.server.util |
| Modifier and Type | Method and Description |
|---|---|
static HeaderName |
HeaderName.from(String name) |
| 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) |
HeaderValue |
HttpResponse.getHeader(HeaderName name) |
| 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 | Method and Description |
|---|---|
static HttpResponse |
Resps.bytesWithHeaders(HttpRequest request,
byte[] bodyBytes,
Map<HeaderName,HeaderValue> headers) |
Copyright © 2021. All rights reserved.