Interface Request
public interface Request
Generic HTTP request to OpenSearch
-
Method Summary
Modifier and TypeMethodDescriptiongetBody()The optional body of the request.The path of the request (without scheme, host, port, or prefix).List of headersThe HTTP method.Query string parameters.
-
Method Details
-
getMethod
String getMethod()The HTTP method. -
getEndpoint
String getEndpoint()The path of the request (without scheme, host, port, or prefix).- Returns:
- path of the request
-
getParameters
Query string parameters. The returned map is an unmodifiable view of the map in the request.- Returns:
- query string parameters
-
getHeaders
Collection<Map.Entry<String,String>> getHeaders()List of headers- Returns:
- list of headers
-
getBody
The optional body of the request. IfOptional.empty()then no body is sent with the request.- Returns:
- optional body of the request
-