public static interface WebHttpRequestConfigurationBuilder.WebHttpRequestBuilder
Modifier and Type | Method and Description |
---|---|
WebHttpRequestConfigurationBuilder.WebHttpRequestBuilder |
addHeader(HttpHeader key,
String value)
Adds a HTTP header to the request.
|
WebHttpRequestConfigurationBuilder.WebHttpRequestBuilder |
addHeader(String key,
String value)
Adds a HTTP header to the request.
|
WebHttpRequestConfigurationBuilder.WebHttpRequestBuilder |
addQueryString(String key,
String value)
Adds a new query parameter to the request.
|
WebHttpRequest |
build()
Builds the WebHttpRequest.
|
WebHttpRequestConfigurationBuilder.WebHttpRequestBuilder |
withHeader(List<WebHttpHeader> headers)
Sets the HTTP header of the request.
|
WebHttpRequestConfigurationBuilder.WebHttpRequestBuilder |
withQueryString(Map<String,String> queries)
Sets the query string of the request.
|
WebHttpRequestConfigurationBuilder.WebHttpRequestBuilder withQueryString(Map<String,String> queries)
queries
- a map of the request query stringWebHttpRequestConfigurationBuilder.WebHttpRequestBuilder addQueryString(String key, String value)
key
- the query parameter keyvalue
- the query parameter valueWebHttpRequestConfigurationBuilder.WebHttpRequestBuilder withHeader(List<WebHttpHeader> headers)
headers
- a list of WebHttpHeaderWebHttpRequestConfigurationBuilder.WebHttpRequestBuilder addHeader(HttpHeader key, String value)
key
- the header keyvalue
- the header valueWebHttpRequestConfigurationBuilder.WebHttpRequestBuilder addHeader(String key, String value)
key
- the header keyvalue
- the header valueWebHttpRequest build()