| Package | Description |
|---|---|
| com.landawn.abacus.http |
| Modifier and Type | Method and Description |
|---|---|
HttpHeaders |
HttpHeaders.copy() |
static HttpHeaders |
HttpHeaders.copyOf(Map<String,?> headers) |
static HttpHeaders |
HttpHeaders.create() |
HttpHeaders |
HttpSettings.headers() |
static HttpHeaders |
HttpHeaders.of(Map<String,?> headers) |
HttpHeaders |
HttpHeaders.set(String name,
Object value) |
HttpHeaders |
HttpHeaders.setAccept(String value) |
HttpHeaders |
HttpHeaders.setAcceptCharset(String acceptCharset)
Sets the accept charset.
|
HttpHeaders |
HttpHeaders.setAcceptEncoding(String acceptEncoding)
Sets the accept encoding.
|
HttpHeaders |
HttpHeaders.setAcceptLanguage(String acceptLanguage)
Sets the accept language.
|
HttpHeaders |
HttpHeaders.setAcceptRanges(String acceptRanges)
Sets the accept ranges.
|
HttpHeaders |
HttpHeaders.setAll(Map<? extends String,? extends Object> m)
Sets the all.
|
HttpHeaders |
HttpHeaders.setAuthorization(String value) |
HttpHeaders |
HttpHeaders.setCacheControl(String value) |
HttpHeaders |
HttpHeaders.setConnection(String value) |
HttpHeaders |
HttpHeaders.setContentEncoding(String acceptEncoding)
Sets the content encoding.
|
HttpHeaders |
HttpHeaders.setContentLanguage(String acceptLanguage)
Sets the content language.
|
HttpHeaders |
HttpHeaders.setContentLength(long contentLength)
Sets the content length.
|
HttpHeaders |
HttpHeaders.setContentType(String contentType)
Sets the content type.
|
HttpHeaders |
HttpHeaders.setCookie(String cookie)
Sets the cookie.
|
HttpHeaders |
HttpHeaders.setFrom(String value) |
HttpHeaders |
HttpHeaders.setHost(String value) |
HttpHeaders |
HttpHeaders.setProxyAuthorization(String value) |
HttpHeaders |
HttpHeaders.setUserAgent(String userAgent)
Sets the user agent.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
HttpUtil.getAccept(HttpHeaders httpHeaders) |
static String |
HttpUtil.getAcceptCharset(HttpHeaders httpHeaders) |
static String |
HttpUtil.getAcceptEncoding(HttpHeaders httpHeaders) |
static String |
HttpUtil.getContentEncoding(HttpHeaders httpHeaders) |
static String |
HttpUtil.getContentType(HttpHeaders httpHeaders) |
static Charset |
HttpUtil.getRequestCharset(HttpHeaders headers) |
HttpRequest |
HttpRequest.headers(HttpHeaders headers)
Removes all headers on this
HttpSettings and adds headers. |
HttpSettings |
HttpSettings.headers(HttpHeaders headers)
Removes all headers on this
HttpSettings and adds headers. |
Copyright © 2021. All rights reserved.