public final class Request
extends java.lang.Object
body is null or itself
immutable.| Modifier and Type | Class and Description |
|---|---|
static class |
Request.Builder |
| Modifier and Type | Method and Description |
|---|---|
RequestBody |
body() |
CacheControl |
cacheControl()
Returns the cache control directives for this response.
|
java.lang.String |
header(java.lang.String name) |
Headers |
headers() |
java.util.List<java.lang.String> |
headers(java.lang.String name) |
boolean |
isHttps() |
java.lang.String |
method() |
Request.Builder |
newBuilder() |
java.lang.Object |
tag() |
java.lang.String |
toString() |
HttpUrl |
url() |
public HttpUrl url()
public java.lang.String method()
public Headers headers()
public java.lang.String header(java.lang.String name)
public java.util.List<java.lang.String> headers(java.lang.String name)
public RequestBody body()
public java.lang.Object tag()
public Request.Builder newBuilder()
public CacheControl cacheControl()
Cache-Control header.public boolean isHttps()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2016. All Rights Reserved.