Package com.squareup.okhttp
Class Request
- java.lang.Object
-
- com.squareup.okhttp.Request
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRequest.Builder
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RequestBodybody()CacheControlcacheControl()Returns the cache control directives for this response.Stringheader(String name)Headersheaders()List<String>headers(String name)HttpUrlhttpUrl()booleanisHttps()Stringmethod()Request.BuildernewBuilder()Objecttag()StringtoString()Returns a string containing a concise, human-readable description of this object.URIuri()URLurl()StringurlString()
-
-
-
Method Detail
-
httpUrl
public HttpUrl httpUrl()
-
url
public URL url()
-
uri
public URI uri() throws IOException
- Throws:
IOException
-
urlString
public String urlString()
-
method
public String method()
-
headers
public Headers headers()
-
body
public RequestBody body()
-
tag
public Object tag()
-
newBuilder
public Request.Builder newBuilder()
-
cacheControl
public CacheControl cacheControl()
Returns the cache control directives for this response. This is never null, even if this response contains noCache-Controlheader.
-
isHttps
public boolean isHttps()
-
toString
public String toString()
Description copied from class:ObjectReturns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:getClass().getName() + '@' + Integer.toHexString(hashCode())
See Writing a useful
toStringmethod if you intend implementing your owntoStringmethod.
-
-