Module io.helidon.webclient.jsonrpc
Package io.helidon.webclient.jsonrpc
Interface JsonRpcClientBatchResponse
- All Superinterfaces:
AutoCloseable
,HttpClientResponse
,Iterable<JsonRpcClientResponse>
public interface JsonRpcClientBatchResponse
extends Iterable<JsonRpcClientResponse>, HttpClientResponse
A representation for a JSON-RPC batch response.
-
Method Summary
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
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
ClientResponseHeaders headers()Response headers.- Returns:
- headers
-
trailers
ClientResponseTrailers 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
-