Class Requests
java.lang.Object
org.opensearch.client.opensearch.generic.Requests
Helper class to construct requests instances
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA new builder for requests with JSON body -
Method Summary
-
Method Details
-
builder
Creates a new builder for requests with JSON body- Returns:
- a new builder for requests with JSON body
-
create
public static Request create(String method, String endpoint, Collection<Map.Entry<String, String>> headers, Map<String, String> parameters, @Nullable Body body) Create request instance- Parameters:
method- the HTTP methodendpoint- the path of the request (without scheme, host, port, or prefix)headers- list of headersparameters- query parametersbody- optional body- Returns:
- request instance
-