| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
Request |
build() |
Request.Builder |
setAccept(List<String> mimeTypes)
Sets the
Accept header. |
Request.Builder |
setAuthorization(Authorization authorization)
Sets the
Authorization header. |
Request.Builder |
setBody(com.google.api.client.http.HttpContent httpContent)
Sets the body and its corresponding
Content-Type header. |
Request.Builder |
setHttpTimeout(Integer httpTimeout)
Sets the HTTP connection and read timeout in milliseconds.
|
Request.Builder |
setUserAgent(String userAgent)
Sets the
User-Agent header. |
public Request build()
public Request.Builder setAuthorization(@Nullable Authorization authorization)
Authorization header.authorization - the authorizationpublic Request.Builder setAccept(List<String> mimeTypes)
Accept header.mimeTypes - the items to pass into the accept headerpublic Request.Builder setUserAgent(String userAgent)
User-Agent header.userAgent - the user agentpublic Request.Builder setHttpTimeout(@Nullable Integer httpTimeout)
null uses the default
timeout and 0 an infinite timeout.httpTimeout - timeout in millisecondspublic Request.Builder setBody(@Nullable com.google.api.client.http.HttpContent httpContent)
Content-Type header.httpContent - the body contentCopyright © 2019. All rights reserved.