public final class HttpHeaders extends Object
| Modifier and Type | Field and Description |
|---|---|
int |
hpackSize |
ByteString |
name
不区分大小写的ASCII编码中的名称
|
static ByteString |
PSEUDO_PREFIX |
static ByteString |
RESPONSE_STATUS |
static ByteString |
TARGET_AUTHORITY |
static ByteString |
TARGET_METHOD |
static ByteString |
TARGET_PATH |
static ByteString |
TARGET_SCHEME |
ByteString |
value
TF-8编码中的值.
|
| Constructor and Description |
|---|
HttpHeaders(ByteString name,
ByteString value) |
HttpHeaders(ByteString name,
String value) |
HttpHeaders(String name,
String value) |
| Modifier and Type | Method and Description |
|---|---|
static long |
contentLength(Headers headers) |
static long |
contentLength(Response response) |
boolean |
equals(Object other) |
static boolean |
hasBody(Response response) |
int |
hashCode() |
static boolean |
hasVaryAll(Headers responseHeaders) |
static boolean |
hasVaryAll(Response response) |
static List<Challenge> |
parseChallenges(Headers responseHeaders,
String headerName) |
static int |
parseSeconds(String value,
int defaultValue) |
static void |
receiveHeaders(CookieJar cookieJar,
UnoUrl url,
Headers headers) |
static int |
skipUntil(String input,
int pos,
String characters) |
static int |
skipWhitespace(String input,
int pos) |
String |
toString() |
static Set<String> |
varyFields(Headers responseHeaders) |
static Headers |
varyHeaders(Headers requestHeaders,
Headers responseHeaders) |
static Headers |
varyHeaders(Response response) |
static boolean |
varyMatches(Response cachedResponse,
Headers cachedRequest,
Request newRequest) |
public static final ByteString PSEUDO_PREFIX
public static final ByteString RESPONSE_STATUS
public static final ByteString TARGET_METHOD
public static final ByteString TARGET_PATH
public static final ByteString TARGET_SCHEME
public static final ByteString TARGET_AUTHORITY
public ByteString name
public ByteString value
public int hpackSize
public HttpHeaders(ByteString name, String value)
public HttpHeaders(ByteString name, ByteString value)
public static long contentLength(Response response)
public static long contentLength(Headers headers)
public static boolean varyMatches(Response cachedResponse, Headers cachedRequest, Request newRequest)
public static boolean hasVaryAll(Response response)
public static boolean hasVaryAll(Headers responseHeaders)
public static List<Challenge> parseChallenges(Headers responseHeaders, String headerName)
public static boolean hasBody(Response response)
public static int skipWhitespace(String input, int pos)
public static int parseSeconds(String value, int defaultValue)
Copyright © 2019. All rights reserved.