Interface Request


public interface Request
Generic HTTP request to OpenSearch
  • 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

      Map<String,String> getParameters()
      Query string parameters. The returned map is an unmodifiable view of the map in the request.
      Returns:
      query string parameters
    • getHeaders

      List of headers
      Returns:
      list of headers
    • getBody

      Optional<Body> getBody()
      The optional body of the request. If Optional.empty() then no body is sent with the request.
      Returns:
      optional body of the request