Modifier and Type | Method and Description |
---|---|
Response |
build()
Builds and returns the Response with all the parameters set via the Response.Builder
|
Response.Builder |
request(Request request)
|
Response.Builder |
responseBody(ResponseBody responseBody)
Sets the ResponseBody for this Response
|
public Response.Builder request(Request request)
request
- The Request that was executed to receive this Responsejava.lang.IllegalArgumentException
- on a null Request argumentpublic Response.Builder responseBody(ResponseBody responseBody)
responseBody
- The ResponseBody to be set to this Responsejava.lang.IllegalArgumentException
- on a null ResponseBody argumentpublic Response build()
java.lang.IllegalArgumentException
- on a null Request or a null ResponseBody arguments