public static class HttpResponse.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
HttpResponse |
build() |
HttpResponse.Builder |
code(int val) |
HttpResponse.Builder |
content(byte[] val) |
HttpResponse.Builder |
content(java.io.InputStream val) |
HttpResponse.Builder |
header(java.lang.String key,
java.lang.String val) |
HttpResponse.Builder |
headers(<any> val) |
HttpResponse.Builder |
reasonPhrase(java.lang.String val) |
public HttpResponse.Builder code(int val)
public HttpResponse.Builder reasonPhrase(@Nullable java.lang.String val)
public HttpResponse.Builder headers(<any> val)
public HttpResponse.Builder header(java.lang.String key, java.lang.String val)
public HttpResponse.Builder content(@Nullable java.io.InputStream val)
public HttpResponse.Builder content(@Nullable byte[] val)
public HttpResponse build()