Interface JsonRpcClientBatchResponse

All Superinterfaces:
AutoCloseable, io.helidon.webclient.api.HttpClientResponse, Iterable<JsonRpcClientResponse>

public interface JsonRpcClientBatchResponse extends Iterable<JsonRpcClientResponse>, io.helidon.webclient.api.HttpClientResponse
A representation for a JSON-RPC batch response.
  • Method Summary

    Modifier and Type
    Method
    Description
    get(int index)
    Get a single response by index.
    io.helidon.http.ClientResponseHeaders
     
    io.helidon.webclient.api.ClientUri
     
    int
    Number of responses in this batch.
    io.helidon.http.Status
     
    io.helidon.http.ClientResponseTrailers
     

    Methods inherited from interface io.helidon.webclient.api.HttpClientResponse

    as, close, entity, inputStream, source

    Methods inherited from interface java.lang.Iterable

    forEach, iterator, spliterator
  • 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

      io.helidon.http.Status status()
    • headers

      io.helidon.http.ClientResponseHeaders headers()
    • trailers

      io.helidon.http.ClientResponseTrailers trailers()
    • lastEndpointUri

      io.helidon.webclient.api.ClientUri lastEndpointUri()