Interface JsonRpcClientResponse

All Superinterfaces:
AutoCloseable, HttpClientResponse

public interface JsonRpcClientResponse extends HttpClientResponse
A representation of a JSON-RPC client response.
  • Method Details

    • rpcId

      Get the JSON-RPC ID set on this response.
      Returns:
      the ID
    • result

      Get the result in this response.
      Returns:
      the optional response result
    • error

      Get an error set on this response.
      Returns:
      the optional error
    • asJsonObject

      JsonObject asJsonObject()
      Get a complete response representation as a JSON object.
      Returns:
      a JSON object that represents the response
    • 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