Interface JsonRpcClientBatchResponse

All Superinterfaces:
AutoCloseable, HttpClientResponse, Iterable<JsonRpcClientResponse>

public interface JsonRpcClientBatchResponse extends Iterable<JsonRpcClientResponse>, HttpClientResponse
A representation for a JSON-RPC batch response.
  • Method Details

    • size

      int size()
      Number of responses in this batch.
      Returns:
      the size
    • get

      JsonRpcClientResponse get(int index)
      Get a single response by index.
      Parameters:
      index - the index
      Returns:
      the response
      Throws:
      IndexOutOfBoundsException - if index is out of bounds
    • status

      Status status()
      Response status.
      Returns:
      status
    • headers

      Response headers.
      Returns:
      headers
    • trailers

      Response trailer headers. Blocks until trailers are available.
      Returns:
      trailers
      Throws:
      IllegalStateException - when invoked before entity is requested
    • lastEndpointUri

      ClientUri lastEndpointUri()
      URI of the last request. (after redirection)
      Returns:
      last URI