public final class HttpHeaders extends Object
| Modifier and Type | Method and Description |
|---|---|
static long |
contentLength(Headers headers) |
static long |
contentLength(Response response) |
static boolean |
hasBody(Response response) |
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,
Url url,
Headers headers) |
static int |
skipUntil(String input,
int pos,
String characters) |
static int |
skipWhitespace(String input,
int pos) |
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 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.