public static class HttpRequest.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
HttpRequest.Builder |
body(byte[] val)
This val must not be modified after being passed in - the object will be used while executing the request.
|
HttpRequest |
build() |
HttpRequest.Builder |
config(HttpConfig val) |
HttpRequest.Builder |
credentials(Credentials val) |
HttpRequest.Builder |
from(HttpRequestImpl httpRequest) |
HttpRequest.Builder |
header(java.lang.String key,
java.lang.String val) |
HttpRequest.Builder |
headers(<any> val) |
HttpRequest.Builder |
method(java.lang.String val) |
HttpRequest.Builder |
uri(java.net.URI val) |
public HttpRequest.Builder uri(java.net.URI val)
public HttpRequest.Builder method(java.lang.String val)
public HttpRequest.Builder body(@Nullable byte[] val)
public HttpRequest.Builder headers(<any> val)
public HttpRequest.Builder header(java.lang.String key, java.lang.String val)
public HttpRequest.Builder credentials(@Nullable Credentials val)
public HttpRequest.Builder config(@Nullable HttpConfig val)
public HttpRequest.Builder from(HttpRequestImpl httpRequest)
public HttpRequest build()