Class RequestHeaders
java.lang.Object
com.squareup.okhttp.internal.http.RequestHeaders
public final class RequestHeaders extends Object
Parsed HTTP request headers.
-
Constructor Summary
Constructors Constructor Description RequestHeaders(URI uri, RawHeaders headers) -
Method Summary
-
Constructor Details
-
RequestHeaders
-
-
Method Details
-
isChunked
public boolean isChunked() -
hasConnectionClose
public boolean hasConnectionClose() -
getUri
-
getHeaders
-
isNoCache
public boolean isNoCache() -
getMaxAgeSeconds
public int getMaxAgeSeconds() -
getMaxStaleSeconds
public int getMaxStaleSeconds() -
getMinFreshSeconds
public int getMinFreshSeconds() -
isOnlyIfCached
public boolean isOnlyIfCached() -
hasAuthorization
public boolean hasAuthorization() -
getContentLength
public long getContentLength() -
getTransferEncoding
-
getUserAgent
-
getHost
-
getConnection
-
getAcceptEncoding
-
getContentType
-
getIfModifiedSince
-
getIfNoneMatch
-
getProxyAuthorization
-
setChunked
public void setChunked() -
setContentLength
public void setContentLength(long contentLength) -
setUserAgent
-
setHost
-
setConnection
-
setAcceptEncoding
-
setContentType
-
setIfModifiedSince
-
setIfNoneMatch
-
hasConditions
public boolean hasConditions()Returns true if the request contains conditions that save the server from sending a response that the client has locally. When the caller adds conditions, this cache won't participate in the request. -
addCookies
-